diff options
-rw-r--r-- | quoins/controllers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quoins/controllers.py b/quoins/controllers.py index b8715be..656aec8 100644 --- a/quoins/controllers.py +++ b/quoins/controllers.py | |||
@@ -199,6 +199,8 @@ class Feed(TGController): | |||
199 | entries = [] | 199 | entries = [] |
200 | if kwargs.has_key('author'): | 200 | if kwargs.has_key('author'): |
201 | posts = blog.getPostsByAuthor(kwargs['author'])[:5] | 201 | posts = blog.getPostsByAuthor(kwargs['author'])[:5] |
202 | elif kwargs.has_key('tag'): | ||
203 | posts = blog.getPostsByTag(kwargs['tag'])[:5] | ||
202 | else: | 204 | else: |
203 | posts = blog.published_posts[:5] | 205 | posts = blog.published_posts[:5] |
204 | for post in posts: | 206 | for post in posts: |