Centralize exact subcategory selectors

This commit is contained in:
2026-06-27 15:09:36 +02:00
parent 5ae2f31a20
commit 728d3e559c
5 changed files with 131 additions and 8 deletions
+1 -1
View File
@@ -113,5 +113,5 @@ def subcategory_choices() -> list[str]:
choices = [category_policy.RANDOM_SUBCATEGORY]
for category in category_policy.load_category_library():
for subcategory in category["subcategories"]:
choices.append(f"{category['name']} / {subcategory['name']}")
choices.append(category_policy.exact_subcategory_selector(category, subcategory))
return choices