summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/query_fatcat.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-16 13:51:11 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-16 13:51:13 -0700
commit7d80405505f74f3e7108567ab5cc5782278eda01 (patch)
treec10a6ac5b4bed1b49313942ef2966693de70a613 /fatcat_scholar/query_fatcat.py
parent7f6d6307a77fa6e0ccc0ce91a111ec70899e2e10 (diff)
downloadfatcat-scholar-7d80405505f74f3e7108567ab5cc5782278eda01.tar.gz
fatcat-scholar-7d80405505f74f3e7108567ab5cc5782278eda01.zip
lint: don't use default keyword for os.environ.get()
pylint complains; not sure this is really valid
Diffstat (limited to 'fatcat_scholar/query_fatcat.py')
-rw-r--r--fatcat_scholar/query_fatcat.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/fatcat_scholar/query_fatcat.py b/fatcat_scholar/query_fatcat.py
index c2b28a0..c862bc0 100644
--- a/fatcat_scholar/query_fatcat.py
+++ b/fatcat_scholar/query_fatcat.py
@@ -44,9 +44,7 @@ def run_query_fatcat(query: str, fulltext_only: bool, json_output: Any) -> None:
"""
api_session = requests_retry_session()
- es_backend = os.environ.get(
- "ELASTICSEARCH_BACKEND", default="https://search.fatcat.wiki",
- )
+ es_backend = os.environ.get("ELASTICSEARCH_BACKEND", "https://search.fatcat.wiki")
es_index = "fatcat_release"
es_client = elasticsearch.Elasticsearch(es_backend)