From 9f0187c307f83a9f2fba85ac58397a2a89aab86b Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 14 Feb 2023 16:34:26 +0300 Subject: ipcam_server: upd --- src/ipcam_server.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ipcam_server.py b/src/ipcam_server.py index 858bd2f..077dba6 100755 --- a/src/ipcam_server.py +++ b/src/ipcam_server.py @@ -101,11 +101,12 @@ class IPCamServerDatabase(SQLiteBase): cur = self.cursor() data = {} - cur.execute("SELECT camera, fix_time, motion_time FROM timestamps") - for cam, fix_time, motion_time in cur.fetchall(): + cur.execute("SELECT camera, fix_time, motion_time, motion_start_time FROM timestamps") + for cam, fix_time, motion_time, motion_start_time in cur.fetchall(): data[int(cam)] = { 'fix': int(fix_time), - 'motion': int(motion_time) + 'motion': int(motion_time), + 'motion_start': int(motion_start_time) } return data -- cgit v1.2.3