summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-10 14:38:13 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-10 14:38:13 -0400
commit3a81c047b75dde308424a64a3d84ff80ac651928 (patch)
treef3d10af050ecd35f0a4730aa470f59e410da97a7
parentac9602d72863d3655e32fca31d3b3f2c8ebe80d5 (diff)
downloadaskbot-3a81c047b75dde308424a64a3d84ff80ac651928.tar.gz
askbot-3a81c047b75dde308424a64a3d84ff80ac651928.tar.bz2
askbot-3a81c047b75dde308424a64a3d84ff80ac651928.zip
fixed a bug in an assert statement
-rw-r--r--askbot/views/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/views/commands.py b/askbot/views/commands.py
index 6938f3a6..6fd493cc 100644
--- a/askbot/views/commands.py
+++ b/askbot/views/commands.py
@@ -589,7 +589,7 @@ def set_tag_filter_strategy(request):
"""
filter_type = request.POST['filter_type']
filter_value = int(request.POST['filter_value'])
- assert(filter_type in 'display', 'email')
+ assert(filter_type in ('display', 'email'))
if filter_type == 'display':
assert(filter_value in dict(const.TAG_DISPLAY_FILTER_STRATEGY_CHOICES))
request.user.display_tag_filter_strategy = filter_value