diff --git a/client/bs_shutdown.py b/client/bs_shutdown.py index 5d9983b..b0e388c 100644 --- a/client/bs_shutdown.py +++ b/client/bs_shutdown.py @@ -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: diff --git a/server/src/data/templates/index.html b/server/src/data/templates/index.html index e627ba1..f50a662 100644 --- a/server/src/data/templates/index.html +++ b/server/src/data/templates/index.html @@ -1,6 +1,8 @@ {% extends "base.html" %} {% block content %} + +
@@ -30,12 +32,25 @@
-
+
+
+ + +
+
@@ -70,7 +85,9 @@
- +