mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Set response
This commit is contained in:
parent
3ad884aba9
commit
aff248c62a
@ -1646,7 +1646,12 @@ def export_recording(camera_name: str, start_time, end_time):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if recordings_count <= 0:
|
if recordings_count <= 0:
|
||||||
return "No recordings found for time range", 400
|
return make_response(
|
||||||
|
jsonify(
|
||||||
|
{"success": False, "message": "No recordings found for time range"}
|
||||||
|
),
|
||||||
|
400,
|
||||||
|
)
|
||||||
|
|
||||||
exporter = RecordingExporter(
|
exporter = RecordingExporter(
|
||||||
current_app.frigate_config,
|
current_app.frigate_config,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user