From 9d3d5e9047849a7b2aa65d5f1f3bca61e08bcaa6 Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Tue, 2 Jun 2015 22:09:26 -0700 Subject: [PATCH] card decay to 1/e in 2 minutes --- flashcards/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/models.py b/flashcards/models.py index 0b414ad..69eee17 100644 --- a/flashcards/models.py +++ b/flashcards/models.py @@ -372,7 +372,7 @@ class Flashcard(Model): return delta.total_seconds() z = 0 - rate = 1.0 / 3600 + rate = 1.0 / 120 for vote in self.userflashcard_set.iterator(): t = seconds_since_epoch(vote.pulled) u = max(z, rate * t) -- 1.9.1