Continue Flask migration.

This commit is contained in:
yohan 2024-06-02 16:03:04 +02:00
parent 3841efad92
commit 7a335d2e4c

View File

@ -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