diff --git a/app.py b/app.py index ff863b8..fab0adf 100644 --- a/app.py +++ b/app.py @@ -19,7 +19,8 @@ class ItemResource: # Get views res = solr.query(SOLR_CORE, { 'q':'type:0', - 'fq':'owningItem:{0} AND isBot:false AND statistics_type:view AND -bundleName:ORIGINAL'.format(item_id) + 'fq':'owningItem:{0} AND isBot:false AND statistics_type:view AND -bundleName:ORIGINAL'.format(item_id), + 'rows':0 }) views = res.get_num_found() @@ -27,7 +28,8 @@ class ItemResource: # Get downloads res = solr.query(SOLR_CORE, { 'q':'type:0', - 'fq':'owningItem:{0} AND isBot:false AND statistics_type:view AND bundleName:ORIGINAL'.format(item_id) + 'fq':'owningItem:{0} AND isBot:false AND statistics_type:view AND bundleName:ORIGINAL'.format(item_id), + 'rows':0 }) downloads = res.get_num_found()