1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-05-16 09:53:00 +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
dspace_statistics_api

@ -140,7 +140,7 @@ def validate_post_parameters(req, resp, resource, params):
description=f'The "{req.context.statistics_scope}" parameter is invalid. The value must be a comma-separated list of UUIDs.',
)
else:
req.context.elements = list()
req.context.elements = []
def set_statistics_scope(req, resp, resource, params):