a
This commit is contained in:
@@ -49,10 +49,11 @@ def update():
|
|||||||
now = to_seconds(datetime.now().time())
|
now = to_seconds(datetime.now().time())
|
||||||
if (time - now) < 0:
|
if (time - now) < 0:
|
||||||
exit
|
exit
|
||||||
if (time != LAST_VALUE and LAST_VALUE != 0):
|
if (time != LAST_VALUE):
|
||||||
|
if (LAST_VALUE != 0):
|
||||||
|
subprocess.run(["shutdown", "/a"])
|
||||||
|
print("new val detected")
|
||||||
LAST_VALUE = time
|
LAST_VALUE = time
|
||||||
subprocess.run(["shutdown", "/a"])
|
|
||||||
print("new val detected")
|
|
||||||
if (time == LAST_VALUE):
|
if (time == LAST_VALUE):
|
||||||
print("Nothing changed")
|
print("Nothing changed")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user