mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
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):
|
||||
return u
|
||||
else:
|
||||
raise ValueError(f"unexpected URL field type: {type(u)}: {u!r}")
|
||||
return u
|
||||
|
||||
|
||||
@app.template_filter()
|
||||
|
|
Loading…
Reference in a new issue