diff --git a/fediseer/database/functions.py b/fediseer/database/functions.py index 583434c..24f147b 100644 --- a/fediseer/database/functions.py +++ b/fediseer/database/functions.py @@ -323,7 +323,8 @@ 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 + + page -= 1 + if page < 0: + page = 0 return query.order_by(Report.created.desc()).offset(10 * page).limit(10).all()