Fix wrong call
This commit is contained in:
1 file changed
+1
-1
@@ -32,7 +32,7 @@ def main():
|
|||||||
# mongo[DB][COLLECTION].insert_many(items)
|
# mongo[DB][COLLECTION].insert_many(items)
|
||||||
with mongo.start_session() as s:
|
with mongo.start_session() as s:
|
||||||
s.start_transaction()
|
s.start_transaction()
|
||||||
s[DB].drop_database()
|
mongo[DB].drop_database()
|
||||||
for collection in collections:
|
for collection in collections:
|
||||||
print(f"Inserting collection: {collection}")
|
print(f"Inserting collection: {collection}")
|
||||||
mongo[DB][collection].insert_many(collections[collection])
|
mongo[DB][collection].insert_many(collections[collection])
|
||||||
|
|||||||
Reference in new issue
Block a user