Merge pull request #1813 from YunoHost/actions/black

This commit is contained in:
tituspijean 2024-04-10 22:35:13 +02:00 committed by GitHub
commit 7bc6fef22c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,7 +152,11 @@ class AppResource:
"__APP__": self.app, "__APP__": self.app,
"__YNH_ARCH__": system_arch(), "__YNH_ARCH__": system_arch(),
"__YNH_DEBIAN_VERSION__": debian_version(), "__YNH_DEBIAN_VERSION__": debian_version(),
"__YNH_APP_UPSTREAM_VERSION__": manager.wanted["version"].split("~")[0] if manager.wanted else manager.current["version"].split("~")[0], "__YNH_APP_UPSTREAM_VERSION__": (
manager.wanted["version"].split("~")[0]
if manager.wanted
else manager.current["version"].split("~")[0]
),
} }
def recursive_apply(function: Callable, data: Any) -> Any: def recursive_apply(function: Callable, data: Any) -> Any: