ipcam_server: upd

This commit is contained in:
Evgeny Zinoviev 2023-02-14 16:34:26 +03:00
parent 5cd9f89e2d
commit 9f0187c307

View File

@ -101,11 +101,12 @@ class IPCamServerDatabase(SQLiteBase):
cur = self.cursor() cur = self.cursor()
data = {} data = {}
cur.execute("SELECT camera, fix_time, motion_time FROM timestamps") cur.execute("SELECT camera, fix_time, motion_time, motion_start_time FROM timestamps")
for cam, fix_time, motion_time in cur.fetchall(): for cam, fix_time, motion_time, motion_start_time in cur.fetchall():
data[int(cam)] = { data[int(cam)] = {
'fix': int(fix_time), 'fix': int(fix_time),
'motion': int(motion_time) 'motion': int(motion_time),
'motion_start': int(motion_start_time)
} }
return data return data