1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-25 23:58:18 +01:00

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

View File

@ -150,8 +150,6 @@ def index_views():
"json.nl": "map", # return facets as a dict instead of a flat list "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) res = requests.get(solr_url, params=solr_query_params)
# Solr returns facets as a dict of dicts (see json.nl parameter) # 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 "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) res = requests.get(solr_url, params=solr_query_params)
# Solr returns facets as a dict of dicts (see json.nl parameter) # Solr returns facets as a dict of dicts (see json.nl parameter)