1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-09-17 08:56:42 +02:00

src/dspace_statistics_api/app.py: run black

This commit is contained in:
2025-09-16 19:07:30 +03:00
parent 4e75682d77
commit 4defc5b926

View File

@@ -80,7 +80,7 @@ class AllStatisticsResource:
with db.cursor() as cursor:
# get total number of communities/collections/items so we can estimate the pages
cursor.execute(f"SELECT COUNT(id) FROM {req.context.statistics_scope}")
pages = math.ceil(cursor.fetchone()['count'] / limit)
pages = math.ceil(cursor.fetchone()["count"] / limit)
# get statistics and use limit and offset to page through results
cursor.execute(