Commit cab847f4e84d1b4ad865e7791ff842c1f1c57027

Authored by Rohan Rangray
1 parent 23e4b7a71e
Exists in master

Fixed bug in study score update

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

flashcards/models.py View file @ cab847f
... ... @@ -226,7 +226,7 @@
226 226 if self.last_interval == 1:
227 227 self.last_interval = 6
228 228 else:
229   - self.last_response_factor = min(1.3, self.last_response_factor + (0.1 - (5 - q) * (0.08 + (5 - q) * 0.02)))
  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 += (now() - self.next_review).days
231 231 self.last_interval = int(round(self.last_interval * self.last_response_factor))
232 232 self.next_review = user_flashcard_quiz.when + timedelta(days=self.last_interval)