mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
umm wot
This commit is contained in:
parent
a9dfed9dad
commit
70fb385f12
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ def page_wiki(key: str):
|
||||||
wiki_latest_edit = fl_g.session.query(db.WikiLog).filter_by(edited_key=key) \
|
wiki_latest_edit = fl_g.session.query(db.WikiLog).filter_by(edited_key=key) \
|
||||||
.order_by(db.WikiLog.timestamp.desc()).first()
|
.order_by(db.WikiLog.timestamp.desc()).first()
|
||||||
if wiki_page is None:
|
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
|
# Embed YouTube videos
|
||||||
converted_md = markdown2.markdown(wiki_page.content.replace("<", "<"),
|
converted_md = markdown2.markdown(wiki_page.content.replace("<", "<"),
|
||||||
extras=["spoiler", "tables", "smarty-pants", "fenced-code-blocks"])
|
extras=["spoiler", "tables", "smarty-pants", "fenced-code-blocks"])
|
||||||
|
|
Loading…
Reference in a new issue