X-Git-Url: https://git.librecmc.org/?p=oweals%2Fkarmaworld.git;a=blobdiff_plain;f=karmaworld%2Fapps%2Fquizzes%2Fcreate_quiz.py;h=a61d236cf1340b77c82e24ef2ab339b70dab041e;hp=d7fd8e0941b81f3f48f565c2fb3643efe190b4af;hb=3fb9188be79556bd351e3659a341c9aeeb6b4926;hpb=cb0a98e15634a21b4965df59d7a956ae7f4bac9a diff --git a/karmaworld/apps/quizzes/create_quiz.py b/karmaworld/apps/quizzes/create_quiz.py index d7fd8e0..a61d236 100644 --- a/karmaworld/apps/quizzes/create_quiz.py +++ b/karmaworld/apps/quizzes/create_quiz.py @@ -98,6 +98,8 @@ def _create_keyword_multiple_choice(keyword, keywords): question_text = u'Pick the keyword to match "{d}"'.format(d=keyword.definition) + random.shuffle(choices) + return MultipleChoiceQuestion(question_text, choices) @@ -111,6 +113,8 @@ def _create_definition_multiple_choice(keyword, keywords): question_text = u'Pick the definition to match "{w}"'.format(w=keyword.word) + random.shuffle(choices) + return MultipleChoiceQuestion(question_text, choices)