Skip to content
Snippets Groups Projects
Commit e4bb29b3 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Jinja filtr bool -> ano/ne

parent 6e16fde0
No related branches found
No related tags found
1 merge request!78UI pro nastavení testovacích účtů
......@@ -87,6 +87,11 @@ def none_value(s: Any, none_value: Any) -> Any:
return none_value if s is None else s
@app.template_filter()
def yes_no(a: bool) -> str:
return "ano" if a else "ne"
@app.template_filter()
def json_pretty(js: Any) -> str:
return json.dumps(js, sort_keys=True, indent=4, ensure_ascii=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment