mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
sortCards() when there are no new cards should do nothing
This commit is contained in:
parent
a65f241258
commit
6885d89b65
1 changed files with 3 additions and 0 deletions
|
@ -810,6 +810,9 @@ queue = 2 %s and due <= :lim order by %s limit %d""" % (
|
|||
fids = self.deck.db.list(
|
||||
("select distinct fid from cards where type = 0 and id in %s "
|
||||
"order by fid") % scids)
|
||||
if not fids:
|
||||
# no new cards
|
||||
return
|
||||
# determine fid ordering
|
||||
due = {}
|
||||
if shuffle:
|
||||
|
|
Loading…
Reference in a new issue