From d01dc2e8227d1c207c5ae563a6e5c41f9a734823 Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Wed, 3 Jun 2015 17:03:06 -0700 Subject: [PATCH] Determine the next review date stupidly --- flashcards/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/models.py b/flashcards/models.py index a433103..f5ecaa4 100644 --- a/flashcards/models.py +++ b/flashcards/models.py @@ -227,7 +227,7 @@ class UserFlashcard(Model): self.last_interval = 6 else: self.last_response_factor = max(1.3, self.last_response_factor + (0.1 - (5 - q) * (0.08 + (5 - q) * 0.02))) - self.last_interval = max(1, self.last_interval + (now() - self.next_review).days) + # self.last_interval = max(1, self.last_interval + (now() - self.next_review).days) self.last_interval = int(round(self.last_interval * self.last_response_factor)) self.next_review = now() + timedelta(days=self.last_interval) self.save() -- 1.9.1