fix(db): fix workflows pagination math

This commit is contained in:
psychedelicious 2024-01-12 00:53:45 +11:00 committed by Kent Keirsey
parent 8e7e3c2b4a
commit 26b7aadd32

View File

@ -169,7 +169,7 @@ class SqliteWorkflowRecordsStorage(WorkflowRecordsStorageBase):
self._cursor.execute(count_query, count_params)
total = self._cursor.fetchone()[0]
pages = int(total / per_page) + 1
pages = total // per_page + (total % per_page > 0)
return PaginatedResults(
items=workflows,