Skip to content

Commit

Permalink
feat: first beauty taxonomies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel committed Dec 20, 2024
1 parent 31243c7 commit c4d2cf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/editor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def taxonomy_path_in_repository(taxonomy_name):
"""Helper function to get the path of a taxonomy in the repository"""
path = taxonomy_name
# hacky for now until we restructure better
if path in ("food_ingredients", "food_categories"):
if path in ("food_ingredients", "food_categories", "beauty_categories", "beauty_labels"):
path = path.replace("_", "/")
return f"taxonomies/{path}.txt"
2 changes: 2 additions & 0 deletions taxonomy-editor-frontend/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ export const TAXONOMY_NAMES = [
"States",
"Test",
"Vitamins",
"Beauty Categories",
"Beauty Labels",
];

0 comments on commit c4d2cf1

Please sign in to comment.