1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

🎨 Format Python code with Black (#2302)

Co-authored-by: alexAubin <4533074+alexAubin@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-05-07 19:18:24 +02:00 committed by GitHub
parent cd5035400c
commit eef6986174
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,11 +64,13 @@ cors = CORS(app)
environment = j2.Environment(loader=j2.FileSystemLoader("templates/"))
def is_hidden_field_filter(field):
return isinstance(field, HiddenField)
app.jinja_env.globals['bootstrap_is_hidden_field'] = is_hidden_field_filter
app.jinja_env.globals["bootstrap_is_hidden_field"] = is_hidden_field_filter
# Handle translations
BABEL_TRANSLATION_DIRECTORIES = "translations"