make sure to consider active tags when calculating next due card

This commit is contained in:
Damien Elmes 2010-10-24 11:47:47 +09:00
parent 057414f404
commit 1e2d88dccf

View file

@ -993,7 +993,9 @@ If the deck has no (enabled) cards, return None.
Ignore new cards."""
return self.s.scalar("""
select combinedDue from cards where type in (0,1)
order by combinedDue limit 1""")
%s
order by combinedDue
limit 1""" % (self.cardLimit("revActive", "revInactive")))
def earliestTimeStr(self, next=None):
"""Return the relative time to the earliest card as a string."""