mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Fix app name definition
This commit is contained in:
parent
63499d6f0e
commit
86ca1285f2
1 changed files with 2 additions and 4 deletions
|
@ -36,13 +36,11 @@ class AppList(db.Model):
|
|||
|
||||
g = Github()
|
||||
|
||||
raw_apps = json.loads(requests.get(self.url).text).values()
|
||||
apps = [ app for app in raw_apps ]
|
||||
raw_apps = json.loads(requests.get(self.url).text)
|
||||
|
||||
for app in apps:
|
||||
for name, app in raw_apps.items():
|
||||
|
||||
app['url'] = app["git"]["url"].strip('/')
|
||||
name = os.path.basename(app["url"]).replace("_ynh", "")
|
||||
|
||||
# Try to find an app for this name
|
||||
known_app = App.query.filter_by(name=name).first()
|
||||
|
|
Loading…
Reference in a new issue