mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1659 from YunoHost/ci-format-debian/11.1.19
[CI] Format code with Black
This commit is contained in:
commit
3ce6505abe
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
Loading…
Add table
Reference in a new issue