Fixed a small problem with the tags page.
This commit is contained in:
parent
0778a373d0
commit
db6d31cc9e
@ -74,7 +74,7 @@ class BlogController(BaseController):
|
|||||||
def tag(self, id=None):
|
def tag(self, id=None):
|
||||||
if not id:
|
if not id:
|
||||||
h.redirect_to('/')
|
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:
|
if not c.tag:
|
||||||
h.redirect_to('/')
|
h.redirect_to('/')
|
||||||
c.page_title = u'Blog posts with tag: %s' % c.tag.name
|
c.page_title = u'Blog posts with tag: %s' % c.tag.name
|
||||||
|
Reference in New Issue
Block a user