Skip to content

Commit

Permalink
fix XiaoMiku01#44 更改了 docker 运行时的执行顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoMiku01 authored Jun 7, 2022
1 parent ef7b672 commit d429cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

if __name__ == '__main__':
users = os.environ.get('USERS')
os.system("git pull")
if users:
with open("users.yaml", "w") as fw:
yaml.dump(json.loads(users), fw)
with open("users.yaml", "r") as fr:
users = yaml.load(fr, Loader=yaml.FullLoader)
os.system("git pull")
os.system("python main.py")

0 comments on commit d429cda

Please sign in to comment.