summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-02-05 03:05:20 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-02-05 03:05:20 +0300
commit5cd9f89e2ddccb6a7960cae295517312a83f7308 (patch)
treedd558f4704ea6f135b4af5e231e1013c1f564c67
parent4e5f302958000f3f5623b3d8d82744e5f36db855 (diff)
ipcam_server: fix queue again
-rwxr-xr-xsrc/ipcam_server.py2
1 files changed, 1 insertions, 1 deletions
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)