diff options
author | adityacp | 2020-02-13 09:51:15 +0530 |
---|---|---|
committer | adityacp | 2020-02-13 09:51:15 +0530 |
commit | 20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f (patch) | |
tree | 25b0f73c4f4628e9c67058794df5578c044f6e7c /yaksh/views.py | |
parent | d7a461639cd57fe78121375bd6730cacecbd63e5 (diff) | |
parent | 32f1d4dc7816bbb93f6dda77591eeb75c3f30c0d (diff) | |
download | online_test-20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f.tar.gz online_test-20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f.tar.bz2 online_test-20c8ebbd65f694bfbf18c229d7b3dfabf439fa3f.zip |
Merge branch 'master' of https://github.com/FOSSEE/online_test into revamp_ui
Diffstat (limited to 'yaksh/views.py')
-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 28515fd..6a0794f 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1358,12 +1358,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 |