mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
don't send acq cards when there are cards to review & new cards shown last
This commit is contained in:
parent
09f51e27f0
commit
c659660864
1 changed files with 2 additions and 1 deletions
|
@ -321,7 +321,8 @@ type, due, interval, factor, priority from """
|
||||||
cards where type = 0 and isDue = 1 and
|
cards where type = 0 and isDue = 1 and
|
||||||
combinedDue <= :now limit 30""", now=time.time())
|
combinedDue <= :now limit 30""", now=time.time())
|
||||||
d['rev'] = self.s.all(sel + rev + " limit 30")
|
d['rev'] = self.s.all(sel + rev + " limit 30")
|
||||||
if self.newCountToday:
|
if self.newCountToday and (self.newCardSpacing != NEW_CARDS_LAST or
|
||||||
|
not d['rev']):
|
||||||
d['acq'] = self.s.all(sel + """
|
d['acq'] = self.s.all(sel + """
|
||||||
%s where factId in (select distinct factId from cards
|
%s where factId in (select distinct factId from cards
|
||||||
where factId in (select factId from %s limit 60))""" % (new, new))
|
where factId in (select factId from %s limit 60))""" % (new, new))
|
||||||
|
|
Loading…
Reference in a new issue