From b5d8a6f6f786bb20b4e12536d30e12143fcaaf92 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 7 Jan 2023 13:49:07 +0100 Subject: [PATCH] Smol fixes in list_builder.py --- list_builder.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/list_builder.py b/list_builder.py index 9aeec07..f9921e0 100755 --- a/list_builder.py +++ b/list_builder.py @@ -13,9 +13,6 @@ import time from collections import OrderedDict from tools.packaging_v2.convert_v1_manifest_to_v2_for_catalog import convert_v1_manifest_to_v2_for_catalog -from rich.console import Console -console = Console() - now = time.time() catalog = json.load(open("apps.json")) @@ -260,7 +257,7 @@ def build_catalog(): "broken": level <= 0, "good_quality": level >= 8, "bad_quality": level <= 5, - "antifeatures": infos["antifeatures"], + "antifeatures": infos.get("antifeatures"), "potential_alternative_to": infos.get("potential_alternative_to", []), } @@ -336,7 +333,7 @@ def build_app_dict(app, infos): "manifest": manifest, "state": infos["state"], "level": infos.get("level", "?"), - "maintained": not 'package-not-maintained' in infos.get('antifeatures', False), + "maintained": not 'package-not-maintained' in infos.get('antifeatures', []), "high_quality": infos.get("high_quality", False), "featured": infos.get("featured", False), "category": infos.get("category", None),