mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
fix formatting
This commit is contained in:
parent
b28dcf4b5e
commit
69e1148ac6
@ -710,7 +710,7 @@ def config_raw():
|
|||||||
|
|
||||||
@bp.route("/config/save", methods=["POST"])
|
@bp.route("/config/save", methods=["POST"])
|
||||||
def config_save():
|
def config_save():
|
||||||
save_option = request.headers.get('Save-Option')
|
save_option = request.headers.get("Save-Option")
|
||||||
|
|
||||||
new_config = request.get_data().decode()
|
new_config = request.get_data().decode()
|
||||||
|
|
||||||
@ -755,7 +755,7 @@ def config_save():
|
|||||||
400,
|
400,
|
||||||
)
|
)
|
||||||
|
|
||||||
if(save_option == "restart"):
|
if save_option == "restart":
|
||||||
try:
|
try:
|
||||||
restart_frigate()
|
restart_frigate()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -766,6 +766,7 @@ def config_save():
|
|||||||
else:
|
else:
|
||||||
return "Config successfully saved.", 200
|
return "Config successfully saved.", 200
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/config/schema.json")
|
@bp.route("/config/schema.json")
|
||||||
def config_schema():
|
def config_schema():
|
||||||
return current_app.response_class(
|
return current_app.response_class(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user