mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fixed cards being attributed to the previous day if they were due past noon.
This commit is contained in:
parent
bf10f96cc2
commit
b08833b6b6
1 changed files with 4 additions and 4 deletions
|
@ -54,10 +54,10 @@ class DeckGraphs(object):
|
||||||
select interval, combinedDue
|
select interval, combinedDue
|
||||||
from cards where reps > 0 and priority != 0""")
|
from cards where reps > 0 and priority != 0""")
|
||||||
for (interval, due) in all:
|
for (interval, due) in all:
|
||||||
day=int(round(interval))
|
day=int(interval)
|
||||||
days[day] = days.get(day, 0) + 1
|
days[day] = days.get(day, 0) + 1
|
||||||
indays = int(round((due - self.endOfDay)
|
indays = int((due - self.endOfDay)
|
||||||
/ 86400.0))
|
/ 86400.0)
|
||||||
next[indays] = next.get(indays, 0) + 1
|
next[indays] = next.get(indays, 0) + 1
|
||||||
if indays < lowestInDay:
|
if indays < lowestInDay:
|
||||||
lowestInDay = indays
|
lowestInDay = indays
|
||||||
|
@ -124,7 +124,7 @@ from cards where reps > 0 and priority != 0""")
|
||||||
(attr, attr, limit))
|
(attr, attr, limit))
|
||||||
for r in res:
|
for r in res:
|
||||||
d = (r - self.endOfDay) / 86400.0
|
d = (r - self.endOfDay) / 86400.0
|
||||||
days[round(d)] = days.get(round(d), 0) + 1
|
days[int(d)] = days.get(int(d), 0) + 1
|
||||||
self.addMissing(days, -numdays, 0)
|
self.addMissing(days, -numdays, 0)
|
||||||
graph = fig.add_subplot(111)
|
graph = fig.add_subplot(111)
|
||||||
intervals = self.unzip(days.items())
|
intervals = self.unzip(days.items())
|
||||||
|
|
Loading…
Reference in a new issue