Skip to content

Commit

Permalink
Patch orders pagination (#3981) (patch)
Browse files Browse the repository at this point in the history
### Fixed

- Pagination is applied even when workflow is not set
  • Loading branch information
islean authored Nov 27, 2024
1 parent 9037ced commit 2b2f362
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cg/store/crud/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,8 @@ def get_orders(self, orders_params: OrderQueryParams) -> tuple[list[Order], int]
cases=orders,
filter_functions=[CaseFilter.BY_WORKFLOWS],
workflows=orders_params.workflows,
).distinct()
)
orders = orders.distinct()
orders: Query = apply_order_filters(
orders=orders,
filters=[OrderFilter.BY_SEARCH, OrderFilter.BY_OPEN],
Expand Down

0 comments on commit 2b2f362

Please sign in to comment.