Skip to content

Commit c4d2cf1

Browse files
committed
feat: first beauty taxonomies
1 parent 31243c7 commit c4d2cf1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backend/editor/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ def taxonomy_path_in_repository(taxonomy_name):
1818
"""Helper function to get the path of a taxonomy in the repository"""
1919
path = taxonomy_name
2020
# hacky for now until we restructure better
21-
if path in ("food_ingredients", "food_categories"):
21+
if path in ("food_ingredients", "food_categories", "beauty_categories", "beauty_labels"):
2222
path = path.replace("_", "/")
2323
return f"taxonomies/{path}.txt"

taxonomy-editor-frontend/src/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ export const TAXONOMY_NAMES = [
5050
"States",
5151
"Test",
5252
"Vitamins",
53+
"Beauty Categories",
54+
"Beauty Labels",
5355
];

0 commit comments

Comments
 (0)