This commit is contained in:
wuhao 2020-11-18 15:40:17 +08:00
parent 086c2fe195
commit 4b6ef1cc09

11
main.py
View File

@ -5,6 +5,7 @@
"""
import os
import sys
import traceback
import pymongo
@ -36,5 +37,11 @@ def sync_data(game):
if __name__ == '__main__':
game = sys.argv[1]
sync_data(game)
game_list = sys.argv[1:]
for game in game_list:
try:
sync_data(game)
except:
traceback.print_exc()
else:
print(f'更新{game} ok')