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:
parent
cd5035400c
commit
eef6986174
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue