mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
app_map()
This commit is contained in:
parent
5b2baddc7d
commit
da6509aeb0
1 changed files with 8 additions and 10 deletions
|
@ -164,7 +164,6 @@ def app_map():
|
|||
domain_app_list.append(conf[:len(conf)-9])
|
||||
|
||||
for installed_app in domain_app_list:
|
||||
try:
|
||||
with open(apps_setting_path + installed_app +'/app_settings.yml') as f:
|
||||
app_settings = yaml.load(f)
|
||||
|
||||
|
@ -172,9 +171,8 @@ def app_map():
|
|||
app_name = app_settings['label'] +' ('+ app_settings['uid'] +' n°'+ str(app_settings['instance']) +')'
|
||||
else:
|
||||
app_name = app_settings['label'] +' ('+ app_settings['uid'] +')'
|
||||
|
||||
result[domain][app_settings['path']] = app_name
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue