Skip to content

Commit 771699d

Browse files
committed
Migration script fixed
1 parent 6a6f05d commit 771699d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db-data-copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_legacy_statuses(dbcursor):
6060

6161

6262
def get_collection(dbconf, name):
63-
client = MongoClient(dbconf.get('hostname'), dbconf.get('port'))
63+
client = MongoClient(host=dbconf.get('host'))
6464
db = client[dbconf.get('database')]
6565
db.drop_collection(name)
6666
db.create_collection(name)

0 commit comments

Comments
 (0)