bug in rev scheduling

This commit is contained in:
Damien Elmes 2012-03-27 05:22:47 +09:00
parent b413b1562a
commit c62dd41f77

View file

@ -582,7 +582,7 @@ did = ? and queue = 2 and due <= ? limit %d)""" % lim,
if not self.revCount:
return False
while self._revDids:
did = self._newDids[0]
did = self._revDids[0]
lim = min(self.queueLimit, self._deckRevLimit(did))
if lim:
# fill the queue with the current did