Skip to content

Commit

Permalink
Fix page_size=None case
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
  • Loading branch information
Marenz committed Oct 17, 2024
1 parent 3074b6b commit fdb6bde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frequenz/client/dispatch/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def to_interval(
request = ListMicrogridDispatchesRequest(
microgrid_id=microgrid_id,
filter=filters,
pagination_params=PaginationParams(page_size=page_size),
pagination_params=(
PaginationParams(page_size=page_size) if page_size else None
),
)

while True:
Expand Down

0 comments on commit fdb6bde

Please sign in to comment.