Comments (3)
Hey Sergey, thanks for the kind words and for the issue.
Previously there was no error thrown if db_filter=None, but now there is body failed validation: body.filter should be an object or undefined, instead was null. error.
The error with None
is intentional: some fields are actually meant to receive None
as a value, e.g. if you want to remove an icon from a page, so we have to pass the None
values. Since Python doesn't have such a thing as undefined
, you have to avoid passing a None
value that you don't want the API to receive. :)
I'd recommend to modify your code with something such as:
query = {"database_id": self.__db_id}
if db_filter:
query["filter"] = db_filter
iterate_paginated_api(self.__notion.databases.query, **query)
Does it sound reasonable to you?
This code is stuck in a never-ending loop returning a list of DB items from 0 to 99 and never gets to the next portion
Good catch, thanks! Fix and release incoming.
from notion-sdk-py.
All good now, thanks for a quick reaction!
from notion-sdk-py.
This code is stuck in a never-ending loop returning a list of DB items from 0 to 99 and never gets to the next portion
Good catch, thanks! Fix and release incoming.
Released. Can you try 2.2.1?
from notion-sdk-py.
Related Issues (20)
- ValidationError when extracting children of a block HOT 1
- Proper Structure to call client.blocks.update
- can't find properties of "Remind"
- Sample query doesn't work, return empty result HOT 4
- [error] AttributeError: 'str' object has no attribute 'logger' HOT 2
- How to read the `block` text?
- Type hints HOT 2
- Logging configuration does not work HOT 2
- notion_client does not work in a class under multiprocessing HOT 2
- notion.databases.create: Is it possible to rearrange database fields according to some defined order? HOT 2
- Using asyncio for notion.pages.create requests HOT 1
- httpx 0.25.x is not compatible with notion client: "TypeError: ConnectionPool.__init__() got an unexpected keyword argument 'socket_options'" HOT 4
- Image upload error when create a new notion page HOT 1
- Alternative for `DatabasesEndpoint.list()` HOT 1
- Create database entry with `select` property HOT 1
- Deleting an icon or a cover is not possible.
- Switch to Ruff HOT 1
- notion.blocks.append not accessible HOT 1
- Database query malformed schema HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notion-sdk-py.