Merge pull request #262 from Arthur-Milchior/NewOrder

Change order of new cards
This commit is contained in:
Damien Elmes 2018-11-25 13:52:17 +10:00 committed by GitHub
commit 39b77951c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ did = ? and queue = 0 limit ?)""", did, lim)
if lim:
# fill the queue with the current did
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:
self._newQueue.reverse()
return True

View File

@ -353,7 +353,7 @@ did = ? and queue = 0 limit ?)""", did, lim)
if lim:
# fill the queue with the current did
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:
self._newQueue.reverse()
return True