update
This commit is contained in:
parent
086c2fe195
commit
4b6ef1cc09
11
main.py
11
main.py
@ -5,6 +5,7 @@
|
|||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import traceback
|
||||||
|
|
||||||
import pymongo
|
import pymongo
|
||||||
|
|
||||||
@ -36,5 +37,11 @@ def sync_data(game):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
game = sys.argv[1]
|
game_list = sys.argv[1:]
|
||||||
sync_data(game)
|
for game in game_list:
|
||||||
|
try:
|
||||||
|
sync_data(game)
|
||||||
|
except:
|
||||||
|
traceback.print_exc()
|
||||||
|
else:
|
||||||
|
print(f'更新{game} ok')
|
||||||
|
Loading…
Reference in New Issue
Block a user