1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Opt: Change directories of reload listening

This commit is contained in:
18870
2022-01-13 17:27:05 +08:00
parent 8cf38a696b
commit 762f1971c4
4 changed files with 9 additions and 9 deletions

View File

@@ -234,7 +234,7 @@ class Updater(Config, Installer):
if updater.update():
self.state = 'reload'
with open('./reloadalas', mode='w') as f:
with open('./config/reloadalas', mode='w') as f:
f.writelines(names)
from module.webui.app import clearup
self._trigger_reload(2)
@@ -249,7 +249,7 @@ class Updater(Config, Installer):
@staticmethod
def _trigger_reload(delay=2):
def trigger():
with open('./reloadflag', mode='w'):
with open('./config/reloadflag', mode='w'):
# app ended here and uvicorn will restart whole app
pass
timer = threading.Timer(delay, trigger)