mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
fix getCards() new card handling logic
This commit is contained in:
parent
9bbb240d37
commit
1b69992e8f
1 changed files with 2 additions and 2 deletions
|
@ -248,8 +248,8 @@ type, due, interval, factor, priority from """
|
|||
d['rev'] = self.s.all(sel + "revCards limit 30")
|
||||
if self.newCountToday:
|
||||
d['acq'] = self.s.all(sel + """
|
||||
cards where factId in (select distinct factId from cards
|
||||
where factId in (select factId from %s limit 60))""" % new)
|
||||
%s where factId in (select distinct factId from cards
|
||||
where factId in (select factId from %s limit 60))""" % (new, new))
|
||||
else:
|
||||
d['acq'] = []
|
||||
if (not d['fail'] and not d['rev'] and not d['acq']):
|
||||
|
|
Loading…
Reference in a new issue