Merge pull request #519 from zjosua/lrnQueue

Fill _lrnQueue with tuples, not lists
This commit is contained in:
Damien Elmes 2020-03-22 21:53:53 +10:00 committed by GitHub
commit 4f99d0d3e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -549,6 +549,8 @@ limit %d"""
% (self._deckLimit(), self.reportLimit),
cutoff,
)
for i in range(len(self._lrnQueue)):
self._lrnQueue[i] = (self._lrnQueue[i][0], self._lrnQueue[i][1])
# as it arrives sorted by did first, we need to sort it
self._lrnQueue.sort()
return self._lrnQueue