mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't include new cards in workload calculation
This commit is contained in:
parent
f32f96fb53
commit
ac5a92214e
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ class DeckStats(object):
|
|||
return (self.deck.s.scalar("""
|
||||
select count(id) from cards
|
||||
where combinedDue < :cutoff
|
||||
and priority > 0""", cutoff=cutoff) or 0) / float(period)
|
||||
and priority > 0 and type in (0,1)""", cutoff=cutoff) or 0) / float(period)
|
||||
|
||||
def getPastWorkloadPeriod(self, period):
|
||||
cutoff = time.time() - 86400 * period
|
||||
|
|
Loading…
Reference in a new issue