update
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user