From 70fb385f12851f4dfdcf36cd8b0cfe0cce0eacb3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Feb 2019 20:29:32 +0100 Subject: [PATCH] umm wot --- webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.py b/webserver.py index e0fa10ac..f7c64580 100644 --- a/webserver.py +++ b/webserver.py @@ -235,7 +235,7 @@ def page_wiki(key: str): wiki_latest_edit = fl_g.session.query(db.WikiLog).filter_by(edited_key=key) \ .order_by(db.WikiLog.timestamp.desc()).first() if wiki_page is None: - return render_template("wikipage.html", key=key) + return render_template("wikipage.html", key=key, wiki_page=None) # Embed YouTube videos converted_md = markdown2.markdown(wiki_page.content.replace("<", "<"), extras=["spoiler", "tables", "smarty-pants", "fenced-code-blocks"])