allow decreasing daily limits in custom study

This commit is contained in:
Damien Elmes 2019-03-05 09:06:17 +10:00
parent b5d4e78b94
commit 59b9c361ac

View File

@ -62,6 +62,7 @@ class CustomStudy(QDialog):
tit = _("New cards in deck over today limit: %s") % plus(newExceeding) tit = _("New cards in deck over today limit: %s") % plus(newExceeding)
pre = _("Increase today's new card limit by") pre = _("Increase today's new card limit by")
sval = min(new, self.deck.get('extendNew', 10)) sval = min(new, self.deck.get('extendNew', 10))
smin = -DYN_MAX_SIZE
smax = newExceeding smax = newExceeding
elif idx == RADIO_REV: elif idx == RADIO_REV:
rev = self.mw.col.sched.totalRevForCurrentDeck() rev = self.mw.col.sched.totalRevForCurrentDeck()
@ -71,6 +72,7 @@ class CustomStudy(QDialog):
tit = _("Reviews due in deck over today limit: %s") % plus(revExceeding) tit = _("Reviews due in deck over today limit: %s") % plus(revExceeding)
pre = _("Increase today's review limit by") pre = _("Increase today's review limit by")
sval = min(rev, self.deck.get('extendRev', 10)) sval = min(rev, self.deck.get('extendRev', 10))
smin = -DYN_MAX_SIZE
smax = revExceeding smax = revExceeding
elif idx == RADIO_FORGOT: elif idx == RADIO_FORGOT:
pre = _("Review cards forgotten in last") pre = _("Review cards forgotten in last")