Skip to content

Commit

Permalink
Fix page numbers not being integer values
Browse files Browse the repository at this point in the history
  • Loading branch information
buehlefs committed Aug 23, 2024
1 parent 03ebc7e commit db9b4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qhana_plugin_registry/db/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def get_page_info(
DB.session.query(
cursor_column,
row_numbers.label("row"),
(row_numbers / item_count).label("page"),
func.floor(row_numbers / item_count).label("page"),
(row_numbers % item_count).label("modulo"),
)
.filter(*query_filter)
Expand Down

0 comments on commit db9b4fe

Please sign in to comment.