diff options
Diffstat (limited to 'src/home/soundsensor')
-rw-r--r-- | src/home/soundsensor/server.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |