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)
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)
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)
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)