Hotfix for single quotes

This commit is contained in:
nukeop 2017-01-06 19:33:23 +01:00
parent e93c951458
commit e4fa94876b

View file

@ -30,7 +30,7 @@ def before_request():
@app.route('/') @app.route('/')
def index(): def index():
welcome = "<p>Welcome to the quote archive.</p>" welcome = conf.config['MOTD']
news = ("<p><b>{}</b></p><h4>{} running on smash quote database" news = ("<p><b>{}</b></p><h4>{} running on smash quote database"
" engine launched today</h4>").format( " engine launched today</h4>").format(
datetime.datetime.now().strftime("%d/%m/%y"), datetime.datetime.now().strftime("%d/%m/%y"),
@ -154,7 +154,10 @@ def quote(id):
return render_template( return render_template(
"latest.html", "latest.html",
title="Quote #{}".format(quote.id), title="Quote #{}".format(quote.id),
quotes=[quote,] quotes=[quote,],
numpages=1,
curpage=0,
page_type="quote"
) )