Merge pull request #1885 from YunoHost/actions/black

Format Python code with Black
This commit is contained in:
Alexandre Aubin 2024-06-29 20:33:05 +02:00 committed by GitHub
commit fcbb971792
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -863,7 +863,9 @@ def app_upgrade(
hook_remove(app_instance_name) hook_remove(app_instance_name)
if "hooks" in os.listdir(extracted_app_folder): if "hooks" in os.listdir(extracted_app_folder):
for hook in os.listdir(extracted_app_folder + "/hooks"): for hook in os.listdir(extracted_app_folder + "/hooks"):
hook_add(app_instance_name, extracted_app_folder + "/hooks/" + hook) hook_add(
app_instance_name, extracted_app_folder + "/hooks/" + hook
)
# Replace scripts and manifest and conf (if exists) # Replace scripts and manifest and conf (if exists)
# Move scripts and manifest to the right place # Move scripts and manifest to the right place