From ebd48c00afd778e7035adbb288ca92d327d29f56 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Wed, 9 Feb 2022 20:09:00 +0000 Subject: [PATCH] build antifeature list from app manifest + catalog --- list_builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/list_builder.py b/list_builder.py index 9e04442b..59b9a268 100755 --- a/list_builder.py +++ b/list_builder.py @@ -200,7 +200,7 @@ def build_catalog(): "broken": level <= 0, "good_quality": level >= 8, "bad_quality": level <= 5, - "antifeatures": infos.get("antifeatures"), + "antifeatures": infos["antifeatures"], } result_dict_doc = {k: infos_for_doc_catalog(v) for k, v in result_dict.items() if v["state"] in ["working", "validated"]} with open("builds/default/doc_catalog/apps.json", 'w') as f: @@ -249,6 +249,7 @@ def build_app_dict(app, infos): 'featured': infos.get("featured", False), 'category': infos.get('category', None), 'subtags': infos.get('subtags', []), + 'antifeatures': list(set(manifest.get('antifeatures', []) + infos.get('antifeatures', []))) }