diff options
author | ankitjavalkar | 2020-01-29 14:41:52 +0530 |
---|---|---|
committer | GitHub | 2020-01-29 14:41:52 +0530 |
commit | a76594e4b78599790a01d059f7a7380185e340a3 (patch) | |
tree | 1209b467c9fd56ff768823d10e453896efa1a822 | |
parent | ce988b1bec26b4a15bf3705c53a2525b0ef104e2 (diff) | |
parent | d67f271d5e1b8eb3fc45a8a2e8762d054fffc02f (diff) | |
download | online_test-a76594e4b78599790a01d059f7a7380185e340a3.tar.gz online_test-a76594e4b78599790a01d059f7a7380185e340a3.tar.bz2 online_test-a76594e4b78599790a01d059f7a7380185e340a3.zip |
Merge pull request #642 from manojvaghela/deleted_question
deleted question now does not reflect in search
-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 |