Trying to get a list of documents, but try different queries. It looks like the queries are ignored:
def get_not_processed_images_from_appwrite(databases: Databases) -> list:
"""Get all images that have not been processed."""
unprocessed_entries = databases.list_documents(
APPWRITE_DATABASE_ID,
APPWRITE_COLLECTIONS_ID_CCTV_IMAGES,
queries=[
Query.limit(100)
],
)
return unprocessed_entries
Result is:
{"total": 5000, "documents":[...]}
What are you expecting?
only 100 documents
And you're getting every document?
I get 5000, looks like it is a hard limit with 5000
Yea 5000 is the max return
The default limit is 25, so it's kind weird it's ignoring that too :P
What version of the sdk are you on and what version of appwrite are you on?
pythonsdk is 7.1.0 and appwrite is 1.6.0
it is weird because it worked some hours ago...
Already removed pythonsdk and added it again, restarted appwrite containers ...
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...