Fix the template filter

This commit is contained in:
Thomas Sileo 2018-07-15 21:38:15 +02:00
parent 3274289950
commit 1c778dbd38

2
app.py
View file

@ -272,7 +272,7 @@ def get_url(u):
elif isinstance(u, str):
return u
else:
raise ValueError(f"unexpected URL field type: {type(u)}: {u!r}")
return u
@app.template_filter()