1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-12-22 20:52:19 +01:00

items.py: Add fl paramter to Solr queries

I forgot to add the fl parameter here as well.
This commit is contained in:
Alan Orth 2020-12-18 16:12:34 +02:00
parent 01e9756cf2
commit a0d0a47150
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -20,6 +20,7 @@ def get_views(solr_date_string: str, items: list):
solr_query_params = {
"q": f"id:({solr_items_string})",
"fq": f"type:2 AND isBot:false AND statistics_type:view AND time:{solr_date_string}",
"fl": "id",
"facet": "true",
"facet.field": "id",
"facet.mincount": 1,
@ -70,6 +71,7 @@ def get_downloads(solr_date_string: str, items: list):
solr_query_params = {
"q": f"owningItem:({solr_items_string})",
"fq": f"type:0 AND isBot:false AND statistics_type:view AND bundleName:ORIGINAL AND time:{solr_date_string}",
"fl": "owningItem",
"facet": "true",
"facet.field": "owningItem",
"facet.mincount": 1,