You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing the latest pymongo breaks this code for the ppdb sub project. There is no listing of the version of pymongo needed for this to work.
If you would like to keep it up to date with the latest I think you need to change the following offending lines
Both are located in ppdb.py Lines 103 & 104
self.db["incidents"].update({"_id": i["_id"]}, i, upsert=True) -> self.db["incidents"].insert_one({"_id": i["_id"]}, i) which does not exactly fix the issue because it no longer does the upsert
Installing the latest pymongo breaks this code for the ppdb sub project. There is no listing of the version of pymongo needed for this to work.
If you would like to keep it up to date with the latest I think you need to change the following offending lines
Both are located in ppdb.py Lines 103 & 104
self.db["incidents"].update({"_id": i["_id"]}, i, upsert=True)
->self.db["incidents"].insert_one({"_id": i["_id"]}, i)
which does not exactly fix the issue because it no longer does the upsertself.db["schedule"].find_and_modify({"_id": a_id}, {"$set": {"last_update": datetime.datetime.now()}})
->self.db["schedule"].find_one_and_update({"_id": a_id}, {"$set": {"last_update": datetime.datetime.now()}})
The text was updated successfully, but these errors were encountered: