don't include new cards in workload calculation

This commit is contained in:
Damien Elmes 2009-05-04 01:50:09 +09:00
parent f32f96fb53
commit ac5a92214e

View file

@ -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