File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1515
1616setup (
1717 name = "monday-api-python-sdk" , # Required
18- version = "1.5.0 " , # Required
18+ version = "1.5.1 " , # Required
1919 description = "A Python SDK for interacting with Monday's GraphQL API" , # Optional
2020 long_description = long_description , # Optional
2121 long_description_content_type = "text/markdown" , # Optional (see note above)
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ def fetch_board_updates(
4343 """
4444 Fetches all updates from a board (with optional date filtering).
4545 - Paginates through all pages until no more updates.
46- - If from_date or to_date are provided, filters out updates outside that window.
46+ - Uses API-level date filtering (requires API version 2026-01+) when dates are provided.
47+ - Also applies client-side filtering as additional safety/fallback.
4748 """
4849 start_dt = datetime .fromisoformat (updated_after ) if updated_after else None
4950 end_dt = datetime .fromisoformat (updated_before ) if updated_before else None
@@ -52,7 +53,12 @@ def fetch_board_updates(
5253 page = 1
5354
5455 while True :
55- updates = self .fetch_board_updates_page (board_ids , page = page )
56+ updates = self .fetch_board_updates_page (
57+ board_ids ,
58+ page = page ,
59+ from_date = updated_after ,
60+ to_date = updated_before
61+ )
5662 if not updates :
5763 break
5864
You can’t perform that action at this time.
0 commit comments