From bfdf32e0cbfc1b1d604429dd86ed921d83397840 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 7 Feb 2013 22:41:40 -0500 Subject: [PATCH] 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` ;). --- quizzer/ui/cli.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.26.2