aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-23 00:07:12 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-23 00:07:12 -0700
commitcb35d6a0fb3962281f074ef09360b47dc69e481d (patch)
treebbf9d1d2326e32eca7a1f8d41df2fea552d830e0
parent3161319d0fe3feafe2b5fed48b9383680f9f0547 (diff)
downloadfatcat-scholar-cb35d6a0fb3962281f074ef09360b47dc69e481d.tar.gz
fatcat-scholar-cb35d6a0fb3962281f074ef09360b47dc69e481d.zip
issuedb: use fatcat API config from settings
-rw-r--r--fatcat_scholar/issue_db.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/fatcat_scholar/issue_db.py b/fatcat_scholar/issue_db.py
index 1fd47a2..466b95d 100644
--- a/fatcat_scholar/issue_db.py
+++ b/fatcat_scholar/issue_db.py
@@ -423,7 +423,11 @@ def main() -> None:
sys.exit(-1)
idb = IssueDB(args.db_file)
- api = fatcat_openapi_client.DefaultApi(fatcat_openapi_client.ApiClient())
+ api_conf = fatcat_openapi_client.Configuration()
+ api_conf.host = settings.FATCAT_API_HOST
+ api = fatcat_openapi_client.DefaultApi(
+ fatcat_openapi_client.ApiClient(api_conf)
+ )
es_client = elasticsearch.Elasticsearch(settings.FATCAT_ELASTICSEARCH_BACKEND)
if args.func == "load_pubs":