From 69e1148ac6c3e1691e040cef0b7d6e76984565ba Mon Sep 17 00:00:00 2001 From: yeahme49 Date: Sat, 14 Jan 2023 22:37:18 -0600 Subject: [PATCH] fix formatting --- frigate/http.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(