1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

build antifeature list from app manifest + catalog

This commit is contained in:
Tagadda 2022-02-09 20:09:00 +00:00
parent 6db46e8046
commit ebd48c00af

View file

@ -200,7 +200,7 @@ def build_catalog():
"broken": level <= 0, "broken": level <= 0,
"good_quality": level >= 8, "good_quality": level >= 8,
"bad_quality": level <= 5, "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"]} 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: 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), 'featured': infos.get("featured", False),
'category': infos.get('category', None), 'category': infos.get('category', None),
'subtags': infos.get('subtags', []), 'subtags': infos.get('subtags', []),
'antifeatures': list(set(manifest.get('antifeatures', []) + infos.get('antifeatures', [])))
} }