[enh] app id in settings

This commit is contained in:
tituspijean 2023-04-12 21:30:28 +02:00 committed by GitHub
parent 749f0c5b1f
commit c96b378d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2013,6 +2013,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
except (IOError, TypeError, KeyError):