Commit d01dc2e8227d1c207c5ae563a6e5c41f9a734823

Authored by Rohan Rangray
1 parent 000b5980c9
Exists in master

Determine the next review date stupidly

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

flashcards/models.py View file @ d01dc2e
... ... @@ -227,7 +227,7 @@
227 227 self.last_interval = 6
228 228 else:
229 229 self.last_response_factor = max(1.3, self.last_response_factor + (0.1 - (5 - q) * (0.08 + (5 - q) * 0.02)))
230   - self.last_interval = max(1, self.last_interval + (now() - self.next_review).days)
  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 232 self.next_review = now() + timedelta(days=self.last_interval)
233 233 self.save()