mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-22 06:15:02 +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:
parent
c4bf8bf698
commit
8e87f80e9a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user