Fix wrong call

This commit is contained in:
Michal Kunc 2021-11-24 14:37:04 +01:00
parent e5c7d0c852
commit db87fdcca5
Signed by: michal
GPG Key ID: 4CA5FB6559E0BDF8

View File

@ -32,7 +32,7 @@ def main():
# mongo[DB][COLLECTION].insert_many(items)
with mongo.start_session() as s:
s.start_transaction()
mongo[DB].drop_database()
mongo.drop_database(DB)
for collection in collections:
print(f"Inserting collection: {collection}")
mongo[DB][collection].insert_many(collections[collection])