mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
ignore filtered cards when determining new card pos boundaries
This commit is contained in:
parent
76ed611bc0
commit
513b0ca8d7
1 changed files with 3 additions and 1 deletions
|
@ -1197,7 +1197,9 @@ update cards set usn=?, mod=?, did=? where id in """ + scids,
|
||||||
frm = aqt.forms.reposition.Ui_Dialog()
|
frm = aqt.forms.reposition.Ui_Dialog()
|
||||||
frm.setupUi(d)
|
frm.setupUi(d)
|
||||||
(pmin, pmax) = self.col.db.first(
|
(pmin, pmax) = self.col.db.first(
|
||||||
"select min(due), max(due) from cards where type=0")
|
"select min(due), max(due) from cards where type=0 and odid=0")
|
||||||
|
pmin = pmin or 0
|
||||||
|
pmax = pmax or 0
|
||||||
txt = _("Queue top: %d") % pmin
|
txt = _("Queue top: %d") % pmin
|
||||||
txt += "\n" + _("Queue bottom: %d") % pmax
|
txt += "\n" + _("Queue bottom: %d") % pmax
|
||||||
frm.label.setText(txt)
|
frm.label.setText(txt)
|
||||||
|
|
Loading…
Reference in a new issue