From db6d31cc9eb68c790f7656d6759143ecd2135892 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 27 Jan 2010 10:33:06 +0200 Subject: [PATCH] Fixed a small problem with the tags page. --- scribeengine/controllers/blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scribeengine/controllers/blog.py b/scribeengine/controllers/blog.py index 2d43e18..3f87f02 100644 --- a/scribeengine/controllers/blog.py +++ b/scribeengine/controllers/blog.py @@ -74,7 +74,7 @@ class BlogController(BaseController): def tag(self, id=None): if not id: h.redirect_to('/') - c.tag = Session.query(Tag).filter_by(url=id).all() + c.tag = Session.query(Tag).filter_by(url=id).first() if not c.tag: h.redirect_to('/') c.page_title = u'Blog posts with tag: %s' % c.tag.name