mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Formatted with ruff
This commit is contained in:
parent
26475174e6
commit
371166f4ee
@ -863,10 +863,13 @@ def label_thumbnail(camera_name, label):
|
|||||||
response.headers["Cache-Control"] = "no-store"
|
response.headers["Cache-Control"] = "no-store"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/<camera_name>/<label>/clip.mp4")
|
@bp.route("/<camera_name>/<label>/clip.mp4")
|
||||||
def label_clip(camera_name, label):
|
def label_clip(camera_name, label):
|
||||||
label = unquote(label)
|
label = unquote(label)
|
||||||
event_query = Event.select(fn.MAX(Event.id)).where(Event.camera == camera_name, Event.has_clip == True)
|
event_query = Event.select(fn.MAX(Event.id)).where(
|
||||||
|
Event.camera == camera_name, Event.has_clip == True
|
||||||
|
)
|
||||||
if label != "any":
|
if label != "any":
|
||||||
event_query = event_query.where(Event.label == label)
|
event_query = event_query.where(Event.label == label)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user