Remove snapshot requirement for thumbnail event query (#4039)

This commit is contained in:
Nicolas Mowen 2022-10-07 20:13:15 -06:00 committed by GitHub
parent 68cdd9b94c
commit 66dc8c772b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,7 +358,6 @@ def label_thumbnail(camera_name, label):
event_query = (
Event.select()
.where(Event.camera == camera_name)
.where(Event.has_snapshot == True)
.order_by(Event.start_time.desc())
)
else:
@ -366,7 +365,6 @@ def label_thumbnail(camera_name, label):
Event.select()
.where(Event.camera == camera_name)
.where(Event.label == label)
.where(Event.has_snapshot == True)
.order_by(Event.start_time.desc())
)