From 1707650e96248d5636a09a523f6409896a92c802 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 18 Nov 2022 04:18:05 +0300 Subject: sound_sensor_server: fix sqlite.... --- src/home/soundsensor/server.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/home/soundsensor') diff --git a/src/home/soundsensor/server.py b/src/home/soundsensor/server.py index db01637..a627390 100644 --- a/src/home/soundsensor/server.py +++ b/src/home/soundsensor/server.py @@ -58,6 +58,7 @@ class Database(SQLiteBase): def set_guard_enabled(self, enabled: bool) -> None: cur = self.cursor() cur.execute("UPDATE status SET guard_enabled=?", (int(enabled),)) + self.commit() class SoundSensorServer: -- cgit v1.2.3