Skip to content

Commit

Permalink
fix: add new categories
Browse files Browse the repository at this point in the history
- all seeds, including rice, quinoa, maize,...
- popcorn
  • Loading branch information
raphael0202 committed Nov 28, 2024
1 parent 9ac8c05 commit 5174eb7
Show file tree
Hide file tree
Showing 151 changed files with 161 additions and 154 deletions.
15 changes: 11 additions & 4 deletions data/categories/filter_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"en:dried-mushrooms", # 7
"en:textured-vegetable-protein", # 2
"en:squash-pulp",
"en:seeds", # include all seeds, rice, quinoa, maize, etc.
"en:popcorn",
]

EXTRA_CHILDREN = [
Expand All @@ -55,6 +57,11 @@
"en:vegetables-from-italy",
"en:nut-macarons",
"en:red-kuri-pulp",
"en:cereal-grains",
"en:cucurbitacea-seeds",
"en:quinoa-fr-raw",
"en:shelled-seeds",
"en:shelf-stable-popcorn",
]

script_path = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -209,11 +216,11 @@ def compare_new_categories_with_old_categories():
# - remove nodes in EXCLUDE_LIST_NODE_IDS
# - remove nodes containing some strings in EXCLUDE_LIST
categories_filtered = [
node
for node in categories_filtered
if node.id.startswith("en:")
node for node in categories_filtered if node.id.startswith("en:")
]
categories_filtered = [
node for node in categories_filtered if node.id not in EXCLUDE_LIST_NODE_IDS
]
categories_filtered = [node for node in categories_filtered if node.id not in EXCLUDE_LIST_NODE_IDS]
categories_filtered = filter_node_list_by_exclude_string_list(
categories_filtered, EXCLUDE_LIST
)
Expand Down
2 changes: 1 addition & 1 deletion src/data/categories/aa.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ach.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/af.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ak.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/am.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ar.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/as.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ast.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/az.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/be.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ber.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/bg.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/bm.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/bn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/bo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/br.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/bs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ca.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ce.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/chr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/co.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/crs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/cs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/cv.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/cy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/da.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/de.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/el.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/en.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/en_AU.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/en_GB.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/eo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/et.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/eu.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/fa.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/fi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/fil.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/fo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/fr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ga.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/gd.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/gl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/gu.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ha.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/he.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/hi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/hr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ht.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/hu.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/hy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/id.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ii.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/is.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/it.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/iu.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ja.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/jv.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ka.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/kab.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/kk.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/km.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/kmr_TR.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/kn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ko.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/kw.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ky.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/la.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/lb.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/lo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/lt.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/lv.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/mg.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/mi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ml.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/mn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/mr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ms.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/mt.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/my.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/nb.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ne.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/nl_BE.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/nl_NL.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/nn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/no.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/nr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/oc.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/or.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/pa.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/pl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/pt_BR.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/pt_PT.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/qu.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/rm.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ro.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ru.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sa.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sat.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sc.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sco.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sd.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sg.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/si.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sk.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sma.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/so.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/son.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sq.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sr_CS.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sr_RS.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ss.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/st.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sv.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/sw.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ta.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/te.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/tg.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/th.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ti.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/tl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/tn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/tr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/tt.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/tw.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ty.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/tzl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ug.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/uk.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ur.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/uz.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/val.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/ve.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/vec.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/vi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/vls.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/wa.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/wo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/xh.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/yi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/yo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/zea.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/zh_CN.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/zh_HK.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/zh_TW.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/categories/zu.json

Large diffs are not rendered by default.

0 comments on commit 5174eb7

Please sign in to comment.