Exemple #1
0
    def answeredCorrect(self):
        if self.currentItem.leitner_grade != Leitner.grades.Shelved.index:
            self.currentItem.leitner_grade = self.currentItem.leitner_grade + 1
        self.currentItem.next_quiz = Leitner.nextQuiz(
            self.currentItem.leitner_grade)

        self.db.updateQuizItem(self.currentItem)
Exemple #2
0
 def answeredCorrect(self):
     if self.currentItem.leitner_grade != Leitner.grades.Shelved.index:
         self.currentItem.leitner_grade = self.currentItem.leitner_grade + 1            
     self.currentItem.next_quiz = Leitner.nextQuiz(self.currentItem.leitner_grade)
     
     self.db.updateQuizItem(self.currentItem)
Exemple #3
0
 def answeredWrong(self):
     self.currentItem.leitner_grade = Leitner.grades.None.index
     self.currentItem.next_quiz = Leitner.nextQuiz(self.currentItem.leitner_grade)
     self.db.updateQuizItem(self.currentItem)
Exemple #4
0
 def answeredWrong(self):
     self.currentItem.leitner_grade = Leitner.grades.None.index
     self.currentItem.next_quiz = Leitner.nextQuiz(
         self.currentItem.leitner_grade)
     self.db.updateQuizItem(self.currentItem)