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
1 changed files with 1 additions and 1 deletions

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