mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
Merge pull request #262 from Arthur-Milchior/NewOrder
Change order of new cards
This commit is contained in:
commit
39b77951c3
2 changed files with 2 additions and 2 deletions
|
|
@ -352,7 +352,7 @@ did = ? and queue = 0 limit ?)""", did, lim)
|
||||||
if lim:
|
if lim:
|
||||||
# fill the queue with the current did
|
# fill the queue with the current did
|
||||||
self._newQueue = self.col.db.list("""
|
self._newQueue = self.col.db.list("""
|
||||||
select id from cards where did = ? and queue = 0 order by due limit ?""", did, lim)
|
select id from cards where did = ? and queue = 0 order by due,ord limit ?""", did, lim)
|
||||||
if self._newQueue:
|
if self._newQueue:
|
||||||
self._newQueue.reverse()
|
self._newQueue.reverse()
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
|
|
@ -353,7 +353,7 @@ did = ? and queue = 0 limit ?)""", did, lim)
|
||||||
if lim:
|
if lim:
|
||||||
# fill the queue with the current did
|
# fill the queue with the current did
|
||||||
self._newQueue = self.col.db.list("""
|
self._newQueue = self.col.db.list("""
|
||||||
select id from cards where did = ? and queue = 0 order by due limit ?""", did, lim)
|
select id from cards where did = ? and queue = 0 order by due,ord limit ?""", did, lim)
|
||||||
if self._newQueue:
|
if self._newQueue:
|
||||||
self._newQueue.reverse()
|
self._newQueue.reverse()
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue