brynq-sdk-monday 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/PKG-INFO +1 -1
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday/extract_monday.py +5 -4
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday.egg-info/PKG-INFO +1 -1
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/setup.py +1 -1
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday/__init__.py +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday/extract_tracket.py +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday/upload_tracket.py +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday.egg-info/not-zip-safe +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday.egg-info/requires.txt +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday.egg-info/top_level.txt +0 -0
- {brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/setup.cfg +0 -0
|
@@ -84,9 +84,9 @@ class ExtractMonday(BrynQ):
|
|
|
84
84
|
start_date : str
|
|
85
85
|
Lower‑bound timestamp in ISO‑8601 format (``YYYY‑MM‑DDThh:mm:ssZ``).
|
|
86
86
|
end_date : str, optional
|
|
87
|
-
Upper‑bound timestamp in ISO‑8601 format. ``None`` means
|
|
87
|
+
Upper‑bound timestamp in ISO‑8601 format. ``None`` means "up to now".
|
|
88
88
|
limit : int, optional
|
|
89
|
-
Maximum log rows per page (default
|
|
89
|
+
Maximum log rows per page (default 500, monday hard‑caps at 500).
|
|
90
90
|
|
|
91
91
|
Returns
|
|
92
92
|
-------
|
|
@@ -102,11 +102,12 @@ class ExtractMonday(BrynQ):
|
|
|
102
102
|
|
|
103
103
|
while continue_loop:
|
|
104
104
|
page += 1
|
|
105
|
+
to_clause = f'to: "{end_date}", ' if end_date else ''
|
|
105
106
|
query = (
|
|
106
107
|
f'query {{ boards (ids: {board_id}) {{ '
|
|
107
108
|
f'activity_logs (item_ids: [{ids_literal}], '
|
|
108
109
|
f'from: "{start_date}", '
|
|
109
|
-
|
|
110
|
+
+ to_clause +
|
|
110
111
|
f'limit: {limit}, page: {page}) '
|
|
111
112
|
f'{{ id event entity data user_id created_at }} }} }}'
|
|
112
113
|
)
|
|
@@ -214,7 +215,7 @@ class ExtractMonday(BrynQ):
|
|
|
214
215
|
:param item_ids: all the items where you want to get the column values from
|
|
215
216
|
"""
|
|
216
217
|
# Chunk in lists of 50 items since monday.com doesn't accept requests longer than 50 items
|
|
217
|
-
items_list =
|
|
218
|
+
items_list = [item_ids[pos:pos + 25] for pos in range(0, len(item_ids), 25)]
|
|
218
219
|
all_data = []
|
|
219
220
|
|
|
220
221
|
for chunk in items_list:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brynq_sdk_monday-1.2.0 → brynq_sdk_monday-1.2.2}/brynq_sdk_monday.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|