Merge pull request #1659 from YunoHost/ci-format-debian/11.1.19

[CI] Format code with Black
This commit is contained in:
Alexandre Aubin 2023-05-08 16:33:36 +02:00 committed by GitHub
commit 3ce6505abe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

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

View file

@ -571,7 +571,10 @@ class PermissionsResource(AppResource):
infos["url"] = _hydrate_app_template(infos["url"], settings) infos["url"] = _hydrate_app_template(infos["url"], settings)
if infos.get("additional_urls"): if infos.get("additional_urls"):
infos["additional_urls"] = [_hydrate_app_template(url, settings) for url in infos["additional_urls"]] infos["additional_urls"] = [
_hydrate_app_template(url, settings)
for url in infos["additional_urls"]
]
def provision_or_update(self, context: Dict = {}): def provision_or_update(self, context: Dict = {}):
from yunohost.permission import ( from yunohost.permission import (