mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
app: remove call of 'domain_config_get' to avoid infinite recursion
This commit is contained in:
parent
2a28e289ad
commit
6bef4b1e0e
1 changed files with 1 additions and 4 deletions
|
@ -130,7 +130,6 @@ def app_info(app, full=False, upgradable=False):
|
|||
Get info for a specific app
|
||||
"""
|
||||
from yunohost.permission import user_permission_list
|
||||
from yunohost.domain import domain_config_get
|
||||
|
||||
_assert_is_installed(app)
|
||||
|
||||
|
@ -229,9 +228,7 @@ def app_info(app, full=False, upgradable=False):
|
|||
ret["is_webapp"] = "domain" in settings and "path" in settings
|
||||
|
||||
if ret["is_webapp"]:
|
||||
ret["is_default"] = (
|
||||
domain_config_get(settings["domain"], "feature.app.default_app") == app
|
||||
)
|
||||
ret["is_default"] = settings.get("default_app", "_none")
|
||||
|
||||
ret["supports_change_url"] = os.path.exists(
|
||||
os.path.join(setting_path, "scripts", "change_url")
|
||||
|
|
Loading…
Add table
Reference in a new issue