summaryrefslogtreecommitdiff
path: root/website/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'website/views.py')
-rw-r--r--website/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/website/views.py b/website/views.py
index c519b60..3c71941 100644
--- a/website/views.py
+++ b/website/views.py
@@ -83,7 +83,12 @@ def question_reply(request):
return HttpResponseRedirect('/question/'+str(qid))
def filter(request, category=None, tutorial=None, minute_range=None, second_range=None):
- context = {}
+ context = {
+ 'category': category,
+ 'tutorial': tutorial,
+ 'minute_range': minute_range,
+ 'second_range': second_range
+ }
if category and tutorial and minute_range and second_range:
questions = Question.objects.filter(category=category).filter(tutorial=tutorial).filter(minute_range=minute_range).filter(second_range=second_range)
elif tutorial is None: