summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2010-08-10 01:10:59 (GMT)
committerMonty Taylor <mordred@inaugust.com>2010-08-10 01:10:59 (GMT)
commitf87043af6e9e8b97eb1717c7d07f0a51743adc0f (patch)
tree4f5102a5a53d80f671339a4d4362cb766ed216a6
parent9d3c7f43ee94524d91b59d1a1850581ee52b9a33 (diff)
Added feed filtering.
-rw-r--r--quoins/controllers.py2
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: