This commit is contained in:
Dmitry Mikheev 2016-05-27 18:47:48 +05:00
parent 181c6f6f91
commit 2b922b3055

View File

@ -927,7 +927,8 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)"""
def _updateRevIvl(self, card, ease):
idealIvl = self._nextRevIvl(card, ease)
card.ivl = min(max(self._adjRevIvl(card, idealIvl), card.ivl+1), self._revConf(card)['maxIvl'])
card.ivl = min(max(self._adjRevIvl(card, idealIvl), card.ivl+1),
self._revConf(card)['maxIvl'])
def _adjRevIvl(self, card, idealIvl):
if self._spreadRev: