fix formatting

This commit is contained in:
yeahme49 2023-01-14 22:37:18 -06:00
parent b28dcf4b5e
commit 69e1148ac6

View File

@ -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(