diff options
-rwxr-xr-x | src/ipcam_server.py | 7 |
1 files 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 |