Continue Flask migration.
This commit is contained in:
parent
3841efad92
commit
7a335d2e4c
@ -147,6 +147,7 @@ def get_forced_mode():
|
||||
return None
|
||||
#cur.execute("SELECT value, timestamp FROM set_mode WHERE name='mode'")
|
||||
#row = cur.fetchone()
|
||||
print(row)
|
||||
data = dict(zip(['value', 'timestamp'], row))
|
||||
timestamp = datetime.fromisoformat(data['timestamp']).replace(tzinfo=timezone.utc).timestamp()
|
||||
# We ignore old targets but never ignore absence modes
|
||||
|
Loading…
Reference in New Issue
Block a user