main
bashrc 2026-08-21 17:55:40 +01:00
parent 4b6ed5f585
commit c119afea16
1 changed files with 3 additions and 2 deletions

View File

@ -4496,7 +4496,8 @@ def get_labels_from_json(json_object: {}) -> []:
label_str = label_str.strip()
label_str = remove_html(label_str)
if label_str:
if len(labels) < 10:
if len(labels) >= 10:
break
labels.append(label_str)
# limit the number of labels
if len(labels) >= 10: