neuromatch / NEXT

NEXT is a machine learning system that runs in the cloud and makes it easy to develop, evaluate, and apply active learning in the real-world. Ask better questions. Get better results. Faster. Automated.
http://nextml.org
Apache License 2.0
1 stars 1 forks source link

PyMongo find_one_and_update returns none #3

Closed iamzoltan closed 4 months ago

iamzoltan commented 5 months ago

This is an odd issue. When using the find_one method on the collection, it return the appropriate document. When using the find_one_and_update, it updates the right document but returns None.

I have tested this with a separate script, and the find_one_and_update method works as expected. I am not sure whats going on. I may be related to #2 but it is unclear.

I had to hack a quick fix for the query page to work.

iamzoltan commented 4 months ago

This was solved by changing the permissions required for mongo