mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
make sure learn ahead only looks at review cards
This commit is contained in:
parent
f636b71b8c
commit
835b4b5969
1 changed files with 1 additions and 3 deletions
|
@ -176,13 +176,11 @@ class Deck(object):
|
||||||
|
|
||||||
def getCardIdAhead(self):
|
def getCardIdAhead(self):
|
||||||
"Return the first card that would become due."
|
"Return the first card that would become due."
|
||||||
t = time.time()
|
|
||||||
id = self.s.scalar("""
|
id = self.s.scalar("""
|
||||||
select id from cards
|
select id from cards
|
||||||
where priority in (1,2,3,4)
|
where type = 1 and isDue = 0 and priority in (1,2,3,4)
|
||||||
order by priority desc, combinedDue
|
order by priority desc, combinedDue
|
||||||
limit 1""")
|
limit 1""")
|
||||||
#print "ahead", time.time() -t, id
|
|
||||||
return id
|
return id
|
||||||
|
|
||||||
# Get card: helper functions
|
# Get card: helper functions
|
||||||
|
|
Loading…
Reference in a new issue