diff options
author | manojvaghela | 2020-01-24 16:42:27 +0530 |
---|---|---|
committer | manojvaghela | 2020-01-24 16:43:29 +0530 |
commit | d67f271d5e1b8eb3fc45a8a2e8762d054fffc02f (patch) | |
tree | fd5dd34efcbde0512d91f6c857c72d37f2649fb9 /yaksh | |
parent | 7edfc63ab89d65337e17e8a79e8114a74b2146e3 (diff) | |
download | online_test-d67f271d5e1b8eb3fc45a8a2e8762d054fffc02f.tar.gz online_test-d67f271d5e1b8eb3fc45a8a2e8762d054fffc02f.tar.bz2 online_test-d67f271d5e1b8eb3fc45a8a2e8762d054fffc02f.zip |
deleted question now does not reflect in search
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index c0317d9..0b24bcf 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1324,12 +1324,12 @@ def _remove_already_present(questionpaper_id, questions): return questions -def _get_questions_from_tags(question_tags, user): +def _get_questions_from_tags(question_tags, user, active=True): search_tags = [] for tags in question_tags: search_tags.extend(re.split('[; |, |\*|\n]', tags)) return Question.objects.filter(tags__name__in=search_tags, - user=user).distinct() + user=user, active=active).distinct() @login_required |