mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
Anti-features draft
This commit is contained in:
parent
d1c812eb31
commit
625c52c1b7
1 changed files with 3 additions and 1 deletions
|
@ -149,9 +149,10 @@ def build_catalog():
|
||||||
# Current version 2 #
|
# Current version 2 #
|
||||||
#####################
|
#####################
|
||||||
categories = yaml.load(open("categories.yml").read())
|
categories = yaml.load(open("categories.yml").read())
|
||||||
|
antifeatures = yaml.load(open("antifeatures.yml").read())
|
||||||
os.system("mkdir -p ./builds/default/v2/")
|
os.system("mkdir -p ./builds/default/v2/")
|
||||||
with open("builds/default/v2/apps.json", 'w') as f:
|
with open("builds/default/v2/apps.json", 'w') as f:
|
||||||
f.write(json.dumps({"apps": result_dict, "categories": categories}, sort_keys=True))
|
f.write(json.dumps({"apps": result_dict, "categories": categories, "antifeatures": antifeatures}, sort_keys=True))
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Legacy version 1 #
|
# Legacy version 1 #
|
||||||
|
@ -199,6 +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"),
|
||||||
}
|
}
|
||||||
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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue