mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +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"])
|
||||
def config_save():
|
||||
save_option = request.headers.get('Save-Option')
|
||||
save_option = request.headers.get("Save-Option")
|
||||
|
||||
new_config = request.get_data().decode()
|
||||
|
||||
@ -755,7 +755,7 @@ def config_save():
|
||||
400,
|
||||
)
|
||||
|
||||
if(save_option == "restart"):
|
||||
if save_option == "restart":
|
||||
try:
|
||||
restart_frigate()
|
||||
except Exception as e:
|
||||
@ -766,6 +766,7 @@ def config_save():
|
||||
else:
|
||||
return "Config successfully saved.", 200
|
||||
|
||||
|
||||
@bp.route("/config/schema.json")
|
||||
def config_schema():
|
||||
return current_app.response_class(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user