diff options
author | Christian Clauss <cclauss@me.com> | 2021-02-09 17:44:04 +0100 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2021-02-23 15:19:48 -0800 |
commit | 537659325664b47b01c24e82cb4a0e850cd129c0 (patch) | |
tree | bb7c93162d9f586a8bec17608cf7eceb11d47cf0 /fatcat_scholar/query_fatcat.py | |
parent | 5878aa63118388361f353ca4f2f6c49a14a58b56 (diff) | |
download | fatcat-scholar-537659325664b47b01c24e82cb4a0e850cd129c0.tar.gz fatcat-scholar-537659325664b47b01c24e82cb4a0e850cd129c0.zip |
Modernize Python syntax with pyupgrade --py38-plus **/*.py
Diffstat (limited to 'fatcat_scholar/query_fatcat.py')
-rw-r--r-- | fatcat_scholar/query_fatcat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/query_fatcat.py b/fatcat_scholar/query_fatcat.py index 24bd662..edac35d 100644 --- a/fatcat_scholar/query_fatcat.py +++ b/fatcat_scholar/query_fatcat.py @@ -67,7 +67,7 @@ def run_query_fatcat(query: str, fulltext_only: bool, json_output: Any) -> None: Q("query_string", query=query, default_operator="AND", fields=["biblio"]) ) - print("Expecting {} search hits".format(search.count()), file=sys.stderr) + print(f"Expecting {search.count()} search hits", file=sys.stderr) search = search.params(clear_scroll=False) search = search.params(_source=False) @@ -76,7 +76,7 @@ def run_query_fatcat(query: str, fulltext_only: bool, json_output: Any) -> None: for hit in results: release_id = hit.meta.id resp = api_session.get( - "https://api.fatcat.wiki/v0/release/{}".format(release_id), + f"https://api.fatcat.wiki/v0/release/{release_id}", params={ "expand": "container,files,filesets,webcaptures", "hide": "references", |