Fix a pagination bug when requesting the first page
This commit is contained in:
parent
d079df4feb
commit
a788555028
@ -104,7 +104,7 @@ def get_all_reports():
|
|||||||
if filters:
|
if filters:
|
||||||
query = query.where(*filters)
|
query = query.where(*filters)
|
||||||
query = query.order_by(*sorting)
|
query = query.order_by(*sorting)
|
||||||
if page_number and page_size:
|
if page_number is not None and page_size is not None:
|
||||||
query = query.paginate(page_number, page_size)
|
query = query.paginate(page_number, page_size)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user