mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Label ain't in setting anymore ... but let's add a shortcut to get it easily from app_info()
This commit is contained in:
parent
05b1a8f96e
commit
d96d06e915
2 changed files with 4 additions and 1 deletions
|
@ -179,6 +179,9 @@ def app_info(app, full=False):
|
|||
ret['supports_multi_instance'] = is_true(local_manifest.get("multi_instance", False))
|
||||
permissions = user_permission_list(full=True, absolute_urls=True)["permissions"]
|
||||
ret['permissions'] = {p: i for p, i in permissions.items() if p.startswith(app + ".") and (i["url"] or i['additional_urls'])}
|
||||
ret['label'] = permissions.get(app + ".main", {}).get("label")
|
||||
if not ret['label']:
|
||||
logger.warning("Failed to get label for app %s ?" % app)
|
||||
return ret
|
||||
|
||||
|
||||
|
|
|
@ -493,7 +493,7 @@ def _list_upgradable_apps():
|
|||
|
||||
yield {
|
||||
'id': app_id,
|
||||
'label': app_dict['settings']['label'],
|
||||
'label': app_dict['label'],
|
||||
'current_version': current_version,
|
||||
'new_version': new_version
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue