From c3f308e622ca1ee9cd8a95237fac1f110032e59b Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 21 Apr 2019 21:25:36 +0200 Subject: [PATCH] Fix template for Article/Page --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 2f7a420..7e2e81c 100644 --- a/app.py +++ b/app.py @@ -322,7 +322,7 @@ def domain(url): @app.template_filter() def url_or_id(d): if isinstance(d, dict): - if ("url" in d) and isinstance(d["url"], str): + if "url" in d: return d["url"] else: return d["id"]