From 306d1aff78f23b2dca89dbc5909eca12b9e149dd Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 11 Jun 2023 15:03:05 +0200 Subject: [PATCH] Fix maintainer dashboard, dataformat changed now that we're using the v3 catalog --- app/models/appcatalog.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/models/appcatalog.py b/app/models/appcatalog.py index ddeb5c3..f785ece 100644 --- a/app/models/appcatalog.py +++ b/app/models/appcatalog.py @@ -36,16 +36,7 @@ class AppCatalog(): known_app.repo = app["url"] print("Updating already known app {}".format(name)) - maintainers_info = app["manifest"].get("maintainer", app["manifest"].get("developer", None)) - if maintainers_info is None: - known_app.maintainers = [ ] - if isinstance(maintainers_info, dict): - if maintainers_info["name"] == "-" or maintainers_info["name"] == "": - known_app.maintainers = [ ] - else: - known_app.maintainers = re.split(", | et ", maintainers_info["name"]) - if isinstance(maintainers_info, list): - known_app.maintainers = [ maintainer["name"] for maintainer in maintainers_info ] + known_app.maintainers = app["manifest"].get("maintainers", []) known_app.maintained = 'package-not-maintained' not in app.get('antifeatures', []) known_app.state = app["state"]