diff --git a/client/bs_shutdown.py b/client/bs_shutdown.py index 920fb38..542dd8b 100644 --- a/client/bs_shutdown.py +++ b/client/bs_shutdown.py @@ -66,6 +66,8 @@ def update(): time = to_seconds(datetime.strptime(DEFAULT_SHUTDOWN, "%H:%M").time()) else: time = to_seconds(datetime.strptime(data["time"], "%H:%M").time()) + print("Got :" + data) + print(time) now = to_seconds(datetime.now().time()) if (time - now) < 0: @@ -78,7 +80,6 @@ def update(): remove_shutdown() print("[BS Shutdown] New value") set_shutdown(time, now) - LAST_VALUE = time if __name__ == '__main__': while True: