Skip to content
Snippets Groups Projects

Draft: read previous category tree from env

Closed Pierre Dittgen requested to merge 821-update-previous-category-tree into master
+ 2
1
@@ -134,7 +134,8 @@ def build_category_json(datasets_info, previous_category_tree=None):
category_info = []
for category_code in sorted(du.CATEGORY_LABELS):
# Don't category
# Don't append the category if it doesn't appear
# in previous category tree and there are no matching datasets
if (
category_code not in datasets_category_codes
and category_code not in previous_category_map