From: W. Trevor King Date: Fri, 8 Feb 2013 03:41:40 +0000 (-0500) Subject: ui.cli: `skip` shifts the current question to the back of the stack X-Git-Tag: v0.2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bfdf32e0cbfc1b1d604429dd86ed921d83397840;p=quizzer.git ui.cli: `skip` shifts the current question to the back of the stack Rather than dropping skipped questions, just save them for later. This gives you another stab at them without having to restart the quiz. If you still can't answer the questions once you reach them again, you can always `quit` ;). --- diff --git a/quizzer/ui/cli.py b/quizzer/ui/cli.py index e5a8e49..60ce896 100644 --- a/quizzer/ui/cli.py +++ b/quizzer/ui/cli.py @@ -109,6 +109,7 @@ class QuestionCommandLine (_cmd.Cmd): def do_skip(self, arg): "Skip the current question, and continue with the quiz" + self.ui.stack.append(self.question) self.question = self.ui.get_question() if not self.question: return True # out of questions