1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-05-09 14:46:01 +02:00

Apply fixes from fixit

RewriteToLiteral: It's slower to call list() than using the empty literal
This commit is contained in:
2023-12-09 12:33:46 +03:00
parent 24f90df13e
commit e70a7a9675
2 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ class AllStatisticsResource:
)
# create a list to hold dicts of stats
statistics = list()
statistics = []
# iterate over results and build statistics object
for result in cursor:
@ -162,7 +162,7 @@ class AllStatisticsResource:
)
# create a list to hold dicts of stats
statistics = list()
statistics = []
# iterate over views dict to extract views and use the element id as an
# index to the downloads dict to extract downloads.