From f174d2fe2b29b61512b73c901b768f56b1453eaa Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 14 May 2019 17:00:38 +0000 Subject: [PATCH] Rely on unified apps.json for unlisted apps check --- app/models/unlistedapps.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/unlistedapps.py b/app/models/unlistedapps.py index b69bc42..85e0e65 100644 --- a/app/models/unlistedapps.py +++ b/app/models/unlistedapps.py @@ -24,11 +24,9 @@ class UnlistedApp(db.Model): UnlistedApp.query.delete() - official = json.loads(requests.get("https://raw.githubusercontent.com/YunoHost/apps/master/official.json").text) - community = json.loads(requests.get("https://raw.githubusercontent.com/YunoHost/apps/master/community.json").text) + community = json.loads(requests.get("https://raw.githubusercontent.com/YunoHost/apps/master/apps.json").text) known_apps = set() - known_apps = known_apps.union([os.path.basename(app["url"]).lower() for app in official.values() ]) known_apps = known_apps.union([os.path.basename(app["url"]).lower() for app in community.values() ]) apps = []