mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 06:37:12 -05:00
fix graph regression caused by div changes (#913)
This commit is contained in:
parent
64c4f1974b
commit
56143c346a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue