From 56143c346a55b0ddbc63759fa7251353b501192e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 3 Jul 2013 04:06:35 +0900 Subject: [PATCH] fix graph regression caused by div changes (#913) --- anki/sched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index c06c20a8e..25bbe8b01 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1125,7 +1125,7 @@ did = ?, queue = %s, due = ?, mod = ?, usn = ? where id = ?""" % queue, data) def _updateCutoff(self): # days since col created - self.today = (time.time() - self.col.crt) // 86400 + self.today = int((time.time() - self.col.crt) // 86400) # end of day cutoff self.dayCutoff = self.col.crt + (self.today+1)*86400 # update all daily counts, but don't save decks to prevent needless