Hotfix for single quotes
This commit is contained in:
parent
e93c951458
commit
e4fa94876b
1 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue