We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e75682 commit 4defc5bCopy full SHA for 4defc5b
1 file changed
src/dspace_statistics_api/app.py
@@ -80,7 +80,7 @@ def on_get(self, req, resp):
80
with db.cursor() as cursor:
81
# get total number of communities/collections/items so we can estimate the pages
82
cursor.execute(f"SELECT COUNT(id) FROM {req.context.statistics_scope}")
83
- pages = math.ceil(cursor.fetchone()['count'] / limit)
+ pages = math.ceil(cursor.fetchone()["count"] / limit)
84
85
# get statistics and use limit and offset to page through results
86
cursor.execute(
0 commit comments