Browse Source

Fix a pagination bug when requesting the first page

Phyks (Lucas Verney) 6 months ago
parent
commit
a788555028
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      server/routes.py

+ 1
- 1
server/routes.py View File

@@ -104,7 +104,7 @@ def get_all_reports():
104 104
     if filters:
105 105
         query = query.where(*filters)
106 106
     query = query.order_by(*sorting)
107
-    if page_number and page_size:
107
+    if page_number is not None and page_size is not None:
108 108
         query = query.paginate(page_number, page_size)
109 109
 
110 110
     if (