mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Fix bug caught in tests
This commit is contained in:
parent
9afb6e763f
commit
12d2137b8f
@ -256,7 +256,10 @@ def get_sub_labels():
|
||||
)
|
||||
|
||||
sub_labels = [e.sub_label for e in events]
|
||||
sub_labels.remove(None)
|
||||
|
||||
if None in sub_labels:
|
||||
sub_labels.remove(None)
|
||||
|
||||
return jsonify(sub_labels)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user