[CI] Format code with Black

This commit is contained in:
yunohost-bot 2023-05-08 14:27:54 +00:00
parent ea24fca91f
commit 74f4c1660c
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 (