Fix the template filter
This commit is contained in:
parent
3274289950
commit
1c778dbd38
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -272,7 +272,7 @@ def get_url(u):
|
||||||
elif isinstance(u, str):
|
elif isinstance(u, str):
|
||||||
return u
|
return u
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"unexpected URL field type: {type(u)}: {u!r}")
|
return u
|
||||||
|
|
||||||
|
|
||||||
@app.template_filter()
|
@app.template_filter()
|
||||||
|
|
Loading…
Reference in a new issue