diff --git a/frigate/http.py b/frigate/http.py index d24f9d130..ae688dcf9 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -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(