Closed caio2525 closed 6 months ago
Someone made a PR for this earlier https://github.com/fengsp/flask-session/pull/135. We are just waiting for approval :(
There are plans to support this function when? @vivCoding
please when will this be updated
Please accept the PR :(
Pymongo 4 now supported
Code example
Every time I try to access a route a get the following error:
File "/Documents/Portifólio/authSystem/env/lib/python3.8/site-packages/flask_session/sessions.py", line 456, in save_session self.store.update({'id': store_id}, File "/Documents/Portifólio/authSystem/env/lib/python3.8/site-packages/pymongo/collection.py", line 2584, in __call__ raise TypeError("'Collection' object is not callable. If you meant to " TypeError: 'Collection' object is not callable. If you meant to call the 'update' method on a 'Collection' object it is failing because no such method exists.
Somebody pointed out that it is due to the fact that update method was removed from pymongo.collection in version 4.0.