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
- [Self-hosted] Realtime crashes with "Mis...
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...