mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
make sure to consider active tags when calculating next due card
This commit is contained in:
parent
057414f404
commit
1e2d88dccf
1 changed files with 4 additions and 2 deletions
|
|
@ -992,8 +992,10 @@ This may be in the past if the deck is not finished.
|
||||||
If the deck has no (enabled) cards, return None.
|
If the deck has no (enabled) cards, return None.
|
||||||
Ignore new cards."""
|
Ignore new cards."""
|
||||||
return self.s.scalar("""
|
return self.s.scalar("""
|
||||||
select combinedDue from cards where type in (0, 1)
|
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):
|
def earliestTimeStr(self, next=None):
|
||||||
"""Return the relative time to the earliest card as a string."""
|
"""Return the relative time to the earliest card as a string."""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue