From 72c107e817aa44dacbdee2305faa6702438294c7 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 27 Jan 2010 10:15:39 +0200 Subject: [PATCH] Fixed a problem on the tags page. --- scribeengine/controllers/blog.py | 2 +- scribeengine/templates/blog/tag.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scribeengine/controllers/blog.py b/scribeengine/controllers/blog.py index 3f87f02..2d43e18 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).first() + c.tag = Session.query(Tag).filter_by(url=id).all() if not c.tag: h.redirect_to('/') c.page_title = u'Blog posts with tag: %s' % c.tag.name diff --git a/scribeengine/templates/blog/tag.mako b/scribeengine/templates/blog/tag.mako index 6fd917a..2d566d7 100644 --- a/scribeengine/templates/blog/tag.mako +++ b/scribeengine/templates/blog/tag.mako @@ -5,7 +5,7 @@

${post.title}

- ${h.literal(h.teaser(post.body, h.url_for_post(post)))} + ${h.literal(h.teaser(post.body))}