We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c09818 commit c3a59e2Copy full SHA for c3a59e2
atomate/utils/database.py
@@ -119,7 +119,7 @@ def __init__(
119
self.collection = self.db[collection]
120
121
# set counter collection
122
- if self.db.counter.find({"_id": "taskid"}).count() == 0:
+ if self.db.counter.count_documents({"_id": "taskid"}) == 0:
123
self.db.counter.insert_one({"_id": "taskid", "c": 0})
124
self.build_indexes()
125
0 commit comments