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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq_sdk_monday
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Monday.com wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -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 up to now”.
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 500, monday hard‑caps at 500).
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
- f'{f\'to: "{end_date}", \' if end_date else ""}'
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 = (item_ids[pos:pos + 25] for pos in range(0, len(item_ids), 25))
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq-sdk-monday
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Monday.com wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
2
2
 
3
3
  setup(
4
4
  name='brynq_sdk_monday',
5
- version='1.2.0',
5
+ version='1.2.2',
6
6
  description='Monday.com wrapper from BrynQ',
7
7
  long_description='Monday.com wrapper from BrynQ',
8
8
  author='BrynQ',