Skip to content

Commit fe91f73

Browse files
committed
Moved discard tags to outside the loop.
1 parent 82a366a commit fe91f73

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/find_tags_categories.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ def collect_tags() -> tuple[Set[str], Set[str]]:
5252
# Handle 'categories' (sometimes used instead / in addition)
5353
cats = fm.get("categories", [])
5454
all_categories.update(str(c).strip() for c in cats if c)
55-
56-
all_tags.discard('TAG_ONE')
57-
all_tags.discard('TAG_TWO')
58-
all_categories.discard('CATEGORY_ONE')
59-
all_categories.discard('CATEGORY_TWO')
55+
56+
all_tags.discard('TAG_ONE')
57+
all_tags.discard('TAG_TWO')
58+
all_categories.discard('CATEGORY_ONE')
59+
all_categories.discard('CATEGORY_TWO')
6060

6161
return all_tags, all_categories
6262

0 commit comments

Comments
 (0)