fix: wrong calc

pull/21/head
db0 2023-09-12 01:28:49 +02:00
parent 96c4987706
commit a292a01894
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ def get_reports(
if report_activity is not None: if report_activity is not None:
query = query.filter(Report.report_activity == report_activity.name query = query.filter(Report.report_activity == report_activity.name
) )
page = page - 1
if page < 1: if page < 1:
page = 1 page = 1
return query.order_by(Report.created.desc()).offset(10 * page).limit(10).all() return query.order_by(Report.created.desc()).offset(10 * page).limit(10).all()