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

Expose the 'potential_alternative_to' info in the app catalog

This commit is contained in:
Alexandre Aubin 2022-08-27 16:12:13 +02:00
parent 0aae39f112
commit 25e3e652b9

View file

@ -241,6 +241,7 @@ def build_catalog():
"good_quality": level >= 8, "good_quality": level >= 8,
"bad_quality": level <= 5, "bad_quality": level <= 5,
"antifeatures": infos["antifeatures"], "antifeatures": infos["antifeatures"],
"potential_alternative_to": infos.get("potential_alternative_to", []),
} }
result_dict_doc = { result_dict_doc = {
@ -320,6 +321,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", []),
"potential_alternative_to": infos.get("potential_alternative_to", []),
"antifeatures": list( "antifeatures": list(
set(manifest.get("antifeatures", []) + infos.get("antifeatures", [])) set(manifest.get("antifeatures", []) + infos.get("antifeatures", []))
), ),