From 8e87f80e9a0edcc974f739f3f9bbf055a4a26b5b Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 24 Sep 2020 11:54:31 +0300 Subject: [PATCH] dspace_statistics_api/indexer.py: Remove duplicate solr_url variable This is declared twice and it never changes. --- dspace_statistics_api/indexer.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dspace_statistics_api/indexer.py b/dspace_statistics_api/indexer.py index e14e141..4787f9e 100644 --- a/dspace_statistics_api/indexer.py +++ b/dspace_statistics_api/indexer.py @@ -150,8 +150,6 @@ def index_views(): "json.nl": "map", # return facets as a dict instead of a flat list } - solr_url = SOLR_SERVER + "/statistics/select" - res = requests.get(solr_url, params=solr_query_params) # Solr returns facets as a dict of dicts (see json.nl parameter) @@ -233,8 +231,6 @@ def index_downloads(): "json.nl": "map", # return facets as a dict instead of a flat list } - solr_url = SOLR_SERVER + "/statistics/select" - res = requests.get(solr_url, params=solr_query_params) # Solr returns facets as a dict of dicts (see json.nl parameter)