dspace_statistics_api/indexer.py: Remove duplicate solr_url variable

This is declared twice and it never changes.
This commit is contained in:
Alan Orth 2020-09-24 11:54:31 +03:00
parent c4bf8bf698
commit 8e87f80e9a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 0 additions and 4 deletions

View File

@ -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)