aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/query_citation.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-25 17:13:14 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-25 17:13:14 -0800
commit5aed3803affdb3f05b881cb90496180be45da440 (patch)
tree5a4de19de020ad063f5f85219ad24851ed7373c7 /fatcat_scholar/query_citation.py
parent3340910073bca6483937ed6d9e5f5b5942833c2e (diff)
downloadfatcat-scholar-5aed3803affdb3f05b881cb90496180be45da440.tar.gz
fatcat-scholar-5aed3803affdb3f05b881cb90496180be45da440.zip
refactor ES configuration setting names
Diffstat (limited to 'fatcat_scholar/query_citation.py')
-rw-r--r--fatcat_scholar/query_citation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/query_citation.py b/fatcat_scholar/query_citation.py
index c555fd4..21f4a9c 100644
--- a/fatcat_scholar/query_citation.py
+++ b/fatcat_scholar/query_citation.py
@@ -188,7 +188,7 @@ if __name__ == "__main__":
release = ref_to_release(ref)
print(release)
- es_backend = os.environ.get("ELASTICSEARCH_BACKEND", "https://search.fatcat.wiki")
+ es_backend = os.environ.get("ELASTICSEARCH_FATCAT_BASE", "https://search.fatcat.wiki")
es_client = elasticsearch.Elasticsearch(es_backend)
api_conf = fatcat_openapi_client.Configuration()
api_conf.host = os.environ.get("FATCAT_API_HOST", "https://api.fatcat.wiki/v0")