mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-09-17 17:06:41 +02:00
src/dspace_statistics_api/app.py: run black
This commit is contained in:
@@ -80,7 +80,7 @@ class AllStatisticsResource:
|
|||||||
with db.cursor() as cursor:
|
with db.cursor() as cursor:
|
||||||
# get total number of communities/collections/items so we can estimate the pages
|
# get total number of communities/collections/items so we can estimate the pages
|
||||||
cursor.execute(f"SELECT COUNT(id) FROM {req.context.statistics_scope}")
|
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
|
# get statistics and use limit and offset to page through results
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
|
Reference in New Issue
Block a user