Update frigate/http.py

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
vanseforge 2024-02-07 16:56:18 +01:00 committed by GitHub
parent b838f389f6
commit a4bff70507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -835,7 +835,7 @@ def label_thumbnail(camera_name, label):
return response
@bp.route("/<camera_name>/<label>/last_clip.mp4")
def label_last_clip(camera_name, label):
def label_clip(camera_name, label):
label = unquote(label)
event_query = Event.select(fn.MAX(Event.id)).where(Event.camera == camera_name, Event.has_clip == True)
if label != "any":