Skip to content

Commit

Permalink
fix issue #2455
Browse files Browse the repository at this point in the history
  • Loading branch information
garenchan committed Jul 24, 2018
1 parent d4eb8eb commit 88b3baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/blog/blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async def post(self):
entry = await self.query("SELECT * FROM entries WHERE id = %s", int(id))
if not entry:
raise tornado.web.HTTPError(404)
slug = entry.slug
slug = entry[0].slug
await self.execute(
"UPDATE entries SET title = %s, markdown = %s, html = %s "
"WHERE id = %s", title, text, html, int(id))
Expand Down

0 comments on commit 88b3baf

Please sign in to comment.