From 4defc5b92668830f4f09a92945eb080b5c9540ea Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 16 Sep 2025 19:07:30 +0300 Subject: [PATCH] src/dspace_statistics_api/app.py: run black --- src/dspace_statistics_api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dspace_statistics_api/app.py b/src/dspace_statistics_api/app.py index d608a89..ba03c78 100644 --- a/src/dspace_statistics_api/app.py +++ b/src/dspace_statistics_api/app.py @@ -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(