Fixed a small problem with the tags page.

This commit is contained in:
Raoul Snyman 2010-01-27 10:33:06 +02:00
parent 0778a373d0
commit db6d31cc9e

View File

@ -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