From d67f271d5e1b8eb3fc45a8a2e8762d054fffc02f Mon Sep 17 00:00:00 2001 From: manojvaghela Date: Fri, 24 Jan 2020 16:42:27 +0530 Subject: deleted question now does not reflect in search --- yaksh/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/views.py') 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 -- cgit