mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Refactor UI main.py to improve code readability and maintainability
This commit is contained in:
parent
96ef8f81dd
commit
96041b8f64
1 changed files with 4 additions and 4 deletions
|
|
@ -1300,10 +1300,10 @@ def plugins():
|
|||
ui_data = get_ui_data()
|
||||
ui_data["RELOADING"] = True
|
||||
ui_data["LAST_RELOAD"] = time()
|
||||
Thread(target=update_plugins, args=(True,)).start()
|
||||
|
||||
with LOCK:
|
||||
TMP_DATA_FILE.write_text(dumps(ui_data), encoding="utf-8")
|
||||
|
||||
Thread(target=update_plugins, args=(True,)).start()
|
||||
else:
|
||||
update_plugins()
|
||||
else:
|
||||
|
|
@ -1510,10 +1510,10 @@ def plugins():
|
|||
ui_data = get_ui_data()
|
||||
ui_data["RELOADING"] = True
|
||||
ui_data["LAST_RELOAD"] = time()
|
||||
Thread(target=update_plugins).start()
|
||||
|
||||
with LOCK:
|
||||
TMP_DATA_FILE.write_text(dumps(ui_data), encoding="utf-8")
|
||||
|
||||
Thread(target=update_plugins, args=(True,)).start()
|
||||
else:
|
||||
update_plugins()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue