From 5cd9f89e2ddccb6a7960cae295517312a83f7308 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 5 Feb 2023 03:05:20 +0300 Subject: ipcam_server: fix queue again --- src/ipcam_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipcam_server.py b/src/ipcam_server.py index bf796dd..858bd2f 100755 --- a/src/ipcam_server.py +++ b/src/ipcam_server.py @@ -346,7 +346,7 @@ def get_recordings_files(cam: Optional[int] = None, for cam in cams: if time_filter_type: from_time = db.get_timestamp(cam, time_filter_type) - if time_filter_type == TimeFilterType.MOTION: + if time_filter_type in (TimeFilterType.MOTION, TimeFilterType.MOTION_START): to_time = db.get_timestamp(cam, TimeFilterType.FIX) from_time = datetime.fromtimestamp(from_time) -- cgit v1.2.3