a
This commit is contained in:
@@ -39,7 +39,7 @@ payload = {
|
|||||||
data = get_data()
|
data = get_data()
|
||||||
if data["noshutdown"] == 1:
|
if data["noshutdown"] == 1:
|
||||||
exit
|
exit
|
||||||
if data is NONE:
|
if data is None:
|
||||||
time = to_seconds(datetime.strptime(DEFAULT_SHUTDOWN, "%H:%M").time())
|
time = to_seconds(datetime.strptime(DEFAULT_SHUTDOWN, "%H:%M").time())
|
||||||
else:
|
else:
|
||||||
time = to_seconds(datetime.strptime(data["time"], "%H:%M").time())
|
time = to_seconds(datetime.strptime(data["time"], "%H:%M").time())
|
||||||
|
|||||||
Reference in New Issue
Block a user