Update index.py

This commit is contained in:
Mr Chen
2024-05-06 15:20:56 +08:00
parent f4f29784d7
commit 7a86ba4444
+1 -1
View File
@@ -1106,7 +1106,7 @@ def replInit():
# tt = client.admin.command('add',{"host":"127.0.0.1:27017"})
# print(tt)
# config['version'] = int(now_time_t)
config['version'] = int(now_time_t)
try:
client.admin.command('replSetReconfig',config,force=True)
except Exception as e: