Fix a pagination bug when requesting the first page

This commit is contained in:
Lucas Verney 2019-05-08 19:47:00 +02:00
parent d079df4feb
commit a788555028

View File

@ -104,7 +104,7 @@ def get_all_reports():
if filters:
query = query.where(*filters)
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)
if (