Merge pull request #1645 from YunoHost/enh_app_id_settings

[enh] app id in settings
This commit is contained in:
Alexandre Aubin 2023-04-12 21:38:40 +02:00 committed by GitHub
commit f92316325e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2012,6 +2012,9 @@ def _get_app_settings(app):
):
settings["path"] = "/" + settings["path"].strip("/")
_set_app_settings(app, settings)
# Make the app id available as $app too
settings["app"] = app
if app == settings["id"]:
return settings