🐛 Bug Report: AttributeError: type object 'Query' has no attribute 'orderDesc' #72
Closed
2 tasks done
Labels
bug
Something isn't working
👟 Reproduction steps
Traceback (most recent call last):
File "/usr/local/server/src/server.py", line 165, in handler
output = await asyncio.wait_for(execute(context), timeout=safeTimeout)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 479, in wait_for
return fut.result()
File "/usr/local/server/src/server.py", line 158, in execute
output = userModule.main(context)
File "/usr/local/server/src/function/src/main.py", line 24, in main
dataOperation.spotInfoHandle()
File "/usr/local/server/src/function/src/data_operation.py", line 24, in spotInfoHandle
Query.orderDesc("rank"),
AttributeError: type object 'Query' has no attribute 'orderDesc'
When I use the list_documents function and pass in Query.orderDesc("index_rank") as the query condition, the error occurs. I checked the implementation source code of Query and found that there was no problem, but in fact, an error was reported.
Preparing for build ...
Building ...
Collecting appwrite
Downloading appwrite-4.0.0.tar.gz (16 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
I am using appwrite-4.0.0 version on the current cloud platform
👍 Expected behavior
Sorting queries can be used normally
👎 Actual Behavior
Traceback (most recent call last):
File "/usr/local/server/src/server.py", line 165, in handler
output = await asyncio.wait_for(execute(context), timeout=safeTimeout)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 479, in wait_for
return fut.result()
File "/usr/local/server/src/server.py", line 158, in execute
output = userModule.main(context)
File "/usr/local/server/src/function/src/main.py", line 24, in main
dataOperation.spotInfoHandle()
File "/usr/local/server/src/function/src/data_operation.py", line 24, in spotInfoHandle
Query.orderDesc("rank"),
AttributeError: type object 'Query' has no attribute 'orderDesc'
🎲 Appwrite version
Version 0.10.x
💻 Operating system
MacOS
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: