Vague attempt at fixing the horrible mess that was my last commit

This commit is contained in:
SecretlyTaco 2017-04-21 02:22:11 +01:00
parent 9d4d741f16
commit 4329dff678

View file

@ -44,7 +44,7 @@ def index():
if len(quotes)>0:
quote = random.choice(quotes)
news = str(Markup.escape(quote.content)).replace('\n', '<br />')
news += str("<a href='quote/" + str(quote) + "'>Permalink</a>")
news += str("<a href='quote/" + str(quote.id) + "'>Permalink</a>")
return render_template(
"index.html",