Skip to content

Commit

Permalink
fix: add country taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Aug 2, 2023
1 parent ba80864 commit 06f0c16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openfoodfacts/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
+ "/data/taxonomies/packaging_materials.full.json",
TaxonomyType.packaging_recycling: URLBuilder.static(Flavor.off, Environment.org)
+ "/data/taxonomies/packaging_recycling.full.json",
TaxonomyType.country: URLBuilder.static(Flavor.off, Environment.org)
+ "/data/taxonomies/countries.full.json",
}


Expand Down
1 change: 1 addition & 0 deletions openfoodfacts/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,4 @@ class TaxonomyType(str, enum.Enum):
packaging_shape = "packaging_shape"
packaging_material = "packaging_material"
packaging_recycling = "packaging_recycling"
country = "country"

0 comments on commit 06f0c16

Please sign in to comment.