From 88b3baff4cea54b230b1565f4b408071ae418998 Mon Sep 17 00:00:00 2001 From: chengkang <1412950785@qq.com> Date: Tue, 24 Jul 2018 09:57:16 +0800 Subject: [PATCH] fix issue #2455 --- demos/blog/blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/blog/blog.py b/demos/blog/blog.py index db43f09bf9..96d511ea44 100755 --- a/demos/blog/blog.py +++ b/demos/blog/blog.py @@ -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))