mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Formatting
This commit is contained in:
parent
9f1da8746f
commit
805c691849
@ -249,9 +249,7 @@ def set_sub_label(id):
|
||||
@bp.route("/sub_labels")
|
||||
def get_sub_labels():
|
||||
try:
|
||||
events = (
|
||||
Event.select(Event.sub_label).distinct()
|
||||
).dicts()
|
||||
events = (Event.select(Event.sub_label).distinct()).dicts()
|
||||
except Exception as e:
|
||||
return jsonify(
|
||||
{"success": False, "message": f"Failed to get sub_labels: {e}"}, "404"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user