Commit 658b50561c79afb391d0026462844bcca8591aac
1 parent
b184b69bce
Exists in
master
Attempted fix for the repeating flashcard problem
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
flashcards/models.py
View file @
658b505
... | ... | @@ -229,7 +229,7 @@ |
229 | 229 | self.last_response_factor = max(1.3, self.last_response_factor + (0.1 - (5 - q) * (0.08 + (5 - q) * 0.02))) |
230 | 230 | self.last_interval = max(1, self.last_interval + (now() - self.next_review).days) |
231 | 231 | self.last_interval = int(round(self.last_interval * self.last_response_factor)) |
232 | - self.next_review = user_flashcard_quiz.when + timedelta(days=self.last_interval) | |
232 | + self.next_review = now() + timedelta(days=self.last_interval) | |
233 | 233 | self.save() |
234 | 234 | |
235 | 235 | class Meta: |