Skip to content

Commit

Permalink
More leaky url parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dlesbre committed Dec 21, 2023
1 parent 11f9d31 commit c4332c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bibtexautocomplete/APIs/inspire.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def get_base_path(self) -> str:
return self.path + "/literature/"

def get_params(self) -> Dict[str, str]:
base = super().get_params()
base = dict()
base.update(super().get_params())
if self.doi is not None:
return base
if self.title is not None:
Expand Down
2 changes: 1 addition & 1 deletion bibtexautocomplete/lookups/https.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def get_data(self) -> Optional[Data]:
since_last_query = time() - self.last_query_time
wait = self.query_delay - since_last_query
if wait > 0.0:
logger.debug("Rate limiter: sleeping for {wait}s", wait=wait)
logger.debug("Rate limiter: sleeping for {wait}s", wait=round(wait, 3))
sleep(wait)
self.__class__.last_query_time = time()
data = super().get_data()
Expand Down

0 comments on commit c4332c4

Please sign in to comment.