[IMP] cleaning

This commit is contained in:
Fabien Pinckaers
2014-10-05 17:12:06 +02:00
parent bdcd76b696
commit 2ffbe9d78d
+2 -7
View File
@@ -96,13 +96,8 @@ class WebsiteForum(http.Controller):
else:
filters = 'all'
if post_type == 'link':
domain += [('type', '=', 'link')]
elif post_type == 'question':
domain += [('type', '=', 'question')]
elif post_type == 'discussion':
domain += [('type', '=', 'discussion')]
if post_type:
domain += [('type', '=', post_type)]
if not sorting:
sorting = forum.default_order