summaryrefslogtreecommitdiff
path: root/src/home/soundsensor/server.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-11-18 04:18:05 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-11-18 04:18:05 +0300
commit1707650e96248d5636a09a523f6409896a92c802 (patch)
treecf72c243e1da7d85522068f846e115c60f3c2ba4 /src/home/soundsensor/server.py
parent648067d254f661961c842072e7dbe04f9b97bcb6 (diff)
sound_sensor_server: fix sqlite....
Diffstat (limited to 'src/home/soundsensor/server.py')
-rw-r--r--src/home/soundsensor/server.py1
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: