mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
'oldest first' now uses the revlog for correct ordering
This commit is contained in:
parent
38688ef8ef
commit
1d257c05ce
1 changed files with 1 additions and 1 deletions
|
@ -983,7 +983,7 @@ due = odue, odue = 0, odid = 0, usn = ? where %s""" % lim,
|
||||||
|
|
||||||
def _dynOrder(self, o, l):
|
def _dynOrder(self, o, l):
|
||||||
if o == DYN_OLDEST:
|
if o == DYN_OLDEST:
|
||||||
t = "c.mod"
|
t = "(select max(id) from revlog where cid=c.id)"
|
||||||
elif o == DYN_RANDOM:
|
elif o == DYN_RANDOM:
|
||||||
t = "random()"
|
t = "random()"
|
||||||
elif o == DYN_SMALLINT:
|
elif o == DYN_SMALLINT:
|
||||||
|
|
Loading…
Reference in a new issue