better-notion 2.1.9__py3-none-any.whl → 2.2.0__py3-none-any.whl

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.
@@ -341,10 +341,19 @@ class TaskManager:
341
341
  "select": {"equals": status},
342
342
  })
343
343
 
344
+ # Build query payload
345
+ query_payload = {}
346
+ if filters:
347
+ # Apply filter only if there are filters
348
+ if len(filters) == 1:
349
+ query_payload["filter"] = filters[0]
350
+ else:
351
+ query_payload["filter"] = {"and": filters}
352
+
344
353
  # Query pages
345
354
  response = await self._client._api.databases.query(
346
355
  database_id=database_id,
347
- filter={"and": filters} if len(filters) > 1 else (filters[0] if filters else None),
356
+ **query_payload
348
357
  )
349
358
 
350
359
  return [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: better-notion
3
- Version: 2.1.9
3
+ Version: 2.2.0
4
4
  Summary: A high-level Python SDK for the Notion API with developer experience in mind.
5
5
  Project-URL: Homepage, https://github.com/nesalia-inc/better-notion
6
6
  Project-URL: Documentation, https://github.com/nesalia-inc/better-notion#readme
@@ -117,7 +117,7 @@ better_notion/plugins/official/agents_cli.py,sha256=WFI-Sg2X4kyqyrB7SdaxwpKRGxsM
117
117
  better_notion/plugins/official/agents_schema.py,sha256=NQRAJFoBAXRuxB9_9Eaf-4tVth-1OZh7GjmN56Yp9lA,39867
118
118
  better_notion/plugins/official/productivity.py,sha256=_-whP4pYA4HufE1aUFbIdhrjU-O9njI7xUO_Id2M1J8,8726
119
119
  better_notion/plugins/official/agents_sdk/__init__.py,sha256=luQBzZLsJ7fC5U0jFu8dfzMviiXj2SBZXcTohM53wkQ,725
120
- better_notion/plugins/official/agents_sdk/managers.py,sha256=A1SQlozecnYrX1HLXxNWZwN0aJXoyrHIr9D1R-Jf3ZQ,40999
120
+ better_notion/plugins/official/agents_sdk/managers.py,sha256=EvEZAsH4-RzKh7o8OV_o8a0mRgMCxnqwyiwuj-Y1Cag,41235
121
121
  better_notion/plugins/official/agents_sdk/models.py,sha256=vBSqf-9Q-gX14Z8779Nacr8yTI3WMi5cLtkJjONiPoY,91967
122
122
  better_notion/plugins/official/agents_sdk/plugin.py,sha256=bs9O8Unv6SARGj4lBU5Gj9HGbLTUNqTacJ3RLUhdbI4,4479
123
123
  better_notion/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -133,8 +133,8 @@ better_notion/utils/agents/rbac.py,sha256=8ZA8Y7wbOiVZDbpjpH7iC35SZrZ0jl4fcJ3xWC
133
133
  better_notion/utils/agents/schemas.py,sha256=RM6XPNA_CdtlNgKAFpN0p0Ppqqo6849RX37ODBp088o,22956
134
134
  better_notion/utils/agents/state_machine.py,sha256=xUBEeDTbU1Xq-rsRo2sbr6AUYpYrV9DTHOtZT2cWES8,6699
135
135
  better_notion/utils/agents/workspace.py,sha256=2_dK58fifMqSEifFxThI7ir_1UR9KLN-d6R4CkdNqjQ,26538
136
- better_notion-2.1.9.dist-info/METADATA,sha256=f8lC_yKU7ywAh2AvSh7ov1ilq1bywyk8-ufwo0yUPHs,11096
137
- better_notion-2.1.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
- better_notion-2.1.9.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
- better_notion-2.1.9.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
- better_notion-2.1.9.dist-info/RECORD,,
136
+ better_notion-2.2.0.dist-info/METADATA,sha256=uj6RsRMipVhH2v4gKaSjOMKSgdd0jxT_VClz62l7NY0,11096
137
+ better_notion-2.2.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
+ better_notion-2.2.0.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
+ better_notion-2.2.0.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
+ better_notion-2.2.0.dist-info/RECORD,,