This commit is contained in:
2026-02-25 13:42:03 +00:00
parent d63d9cdb78
commit acd57b90a8
2 changed files with 22 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ def set_shutdown(time, now):
def remove_shutdown():
print("[BS Shutdown] Removed shutdown")
# subprocess.run(["shutdown", "/s", "/t", (time - now), " "])
# subprocess.run(["shutdown", "/a"])
def update():
global LAST_VALUE
@@ -58,8 +58,8 @@ def update():
if data is not None and data["noshutdown"] == 1:
if (LAST_VALUE != 0):
remove_shutdown() # In case
LAST_VALUE = 0
remove_shutdown()
return
if data is None: