mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #173 from YunoHost/app_list_raw_bool_only_for_multi_instance
[fix] ensure that multi_instance key value is always a boolean
This commit is contained in:
commit
0be7f13965
1 changed files with 5 additions and 0 deletions
|
@ -208,6 +208,11 @@ def app_list(offset=None, limit=None, filter=None, raw=False, installed=False, w
|
|||
app_info_dict['installed'] = app_installed
|
||||
if app_installed:
|
||||
app_info_dict['status'] = _get_app_status(app_id)
|
||||
|
||||
# dirty: we used to have manifest containing multi_instance value in form of a string
|
||||
# but we've switched to bool, this line ensure retrocompatibility
|
||||
app_info_dict["manifest"]["multi_instance"] = is_true(app_info_dict["manifest"].get("multi_instance", False))
|
||||
|
||||
list_dict[app_id] = app_info_dict
|
||||
else:
|
||||
label = None
|
||||
|
|
Loading…
Add table
Reference in a new issue