forked from Github/frigate
Fix webUI success / error messages (#7820)
* Fix export error handling * Ensure that config editor success / error is updated each time * Set response * Formatting
This commit is contained in:
@@ -1646,7 +1646,12 @@ def export_recording(camera_name: str, start_time, end_time):
|
||||
)
|
||||
|
||||
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(
|
||||
current_app.frigate_config,
|
||||
|
||||
Reference in New Issue
Block a user