formatting

This commit is contained in:
Nicolas Mowen 2024-03-02 10:47:40 -07:00
parent 9daa89e140
commit b895676c0f
3 changed files with 7 additions and 3 deletions

View File

@ -162,9 +162,9 @@ def config():
config["plus"] = {"enabled": current_app.plus_api.is_active()} config["plus"] = {"enabled": current_app.plus_api.is_active()}
for detector, detector_config in config["detectors"].items(): for detector, detector_config in config["detectors"].items():
detector_config["model"][ detector_config["model"]["labelmap"] = (
"labelmap" current_app.frigate_config.model.merged_labelmap
] = current_app.frigate_config.model.merged_labelmap )
return jsonify(config) return jsonify(config)

View File

@ -591,6 +591,7 @@ def set_sub_label(id):
200, 200,
) )
@EventBp.route("/events/<id>", methods=("DELETE",)) @EventBp.route("/events/<id>", methods=("DELETE",))
def delete_event(id): def delete_event(id):
try: try:

View File

@ -740,6 +740,7 @@ def export_delete(file_name: str):
200, 200,
) )
@MediaBp.route("/<camera_name>/<label>/snapshot.jpg") @MediaBp.route("/<camera_name>/<label>/snapshot.jpg")
def label_snapshot(camera_name, label): def label_snapshot(camera_name, label):
label = unquote(label) label = unquote(label)
@ -931,6 +932,7 @@ def grid_snapshot(camera_name):
404, 404,
) )
@MediaBp.route("/events/<id>/snapshot.jpg") @MediaBp.route("/events/<id>/snapshot.jpg")
def event_snapshot(id): def event_snapshot(id):
download = request.args.get("download", type=bool) download = request.args.get("download", type=bool)
@ -1028,6 +1030,7 @@ def event_clip(id):
return response return response
@MediaBp.route("/events/<id>/thumbnail.jpg") @MediaBp.route("/events/<id>/thumbnail.jpg")
def event_thumbnail(id, max_cache_age=2592000): def event_thumbnail(id, max_cache_age=2592000):
format = request.args.get("format", "ios") format = request.args.get("format", "ios")