From 96c498770656ac6c9e5ff97c01e842040a87882f Mon Sep 17 00:00:00 2001 From: db0 Date: Tue, 12 Sep 2023 01:27:55 +0200 Subject: [PATCH] fix: wrong calc --- fediseer/database/functions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/fediseer/database/functions.py b/fediseer/database/functions.py index 583434c..6c476e4 100644 --- a/fediseer/database/functions.py +++ b/fediseer/database/functions.py @@ -323,7 +323,6 @@ 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()