mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Rely on unified apps.json for unlisted apps check
This commit is contained in:
parent
3052185415
commit
f174d2fe2b
1 changed files with 1 additions and 3 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue