From b895676c0f705aa8e30fa175e5bae78b914a95e5 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 2 Mar 2024 10:47:40 -0700 Subject: [PATCH] formatting --- frigate/api/app.py | 6 +++--- frigate/api/event.py | 1 + frigate/api/media.py | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frigate/api/app.py b/frigate/api/app.py index f06d9a20a..321bd5758 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -162,9 +162,9 @@ def config(): config["plus"] = {"enabled": current_app.plus_api.is_active()} for detector, detector_config in config["detectors"].items(): - detector_config["model"][ - "labelmap" - ] = current_app.frigate_config.model.merged_labelmap + detector_config["model"]["labelmap"] = ( + current_app.frigate_config.model.merged_labelmap + ) return jsonify(config) diff --git a/frigate/api/event.py b/frigate/api/event.py index e18f5d366..32aa42146 100644 --- a/frigate/api/event.py +++ b/frigate/api/event.py @@ -591,6 +591,7 @@ def set_sub_label(id): 200, ) + @EventBp.route("/events/", methods=("DELETE",)) def delete_event(id): try: diff --git a/frigate/api/media.py b/frigate/api/media.py index 3cce18a33..6e986af0b 100644 --- a/frigate/api/media.py +++ b/frigate/api/media.py @@ -740,6 +740,7 @@ def export_delete(file_name: str): 200, ) + @MediaBp.route("//