Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kahst committed Feb 23, 2024
2 parents 6e8ac75 + 743c60a commit 89361b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,13 @@ def select_subdirectories():

if dir_name:
subdirs = utils.list_subdirectories(dir_name[0])

labels = []

for folder in subdirs:
labels_in_folder = folder.split(',')

for label in labels_in_folder:
if not label in labels and not label.startswith('-') and not label in cfg.NON_EVENT_CLASSES:
if not label in labels:
labels.append(label)

return dir_name[0], [[label] for label in sorted(labels)]
Expand Down

0 comments on commit 89361b6

Please sign in to comment.