From a292a01894ff5e10e140dbe337bcb390d7f424d3 Mon Sep 17 00:00:00 2001 From: db0 Date: Tue, 12 Sep 2023 01:28:49 +0200 Subject: [PATCH] fix: wrong calc --- fediseer/database/functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fediseer/database/functions.py b/fediseer/database/functions.py index 6c476e4..583434c 100644 --- a/fediseer/database/functions.py +++ b/fediseer/database/functions.py @@ -323,6 +323,7 @@ def get_reports( if report_activity is not None: query = query.filter(Report.report_activity == report_activity.name ) + page = page - 1 if page < 1: page = 1 return query.order_by(Report.created.desc()).offset(10 * page).limit(10).all()