Skip to content

Commit

Permalink
Remove snapshot requirement for thumbnail event query
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Oct 7, 2022
1 parent 68cdd9b commit a1043bf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frigate/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,13 @@ 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:
event_query = (
Event.select()
.where(Event.camera == camera_name)
.where(Event.label == label)
.where(Event.has_snapshot == True)
.order_by(Event.start_time.desc())
)

Expand Down

0 comments on commit a1043bf

Please sign in to comment.