mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
make sure we limit review time period to oldest card in deck, not collection
This commit is contained in:
parent
1be0f919f4
commit
78039891ce
1 changed files with 4 additions and 1 deletions
|
|
@ -259,7 +259,10 @@ group by day order by day""" % (self._limit(), lim),
|
|||
period = self._periodDays()
|
||||
if not period:
|
||||
# base off earliest repetition date
|
||||
t = self.col.db.scalar("select id from revlog limit 1")
|
||||
lim = self._revlogLimit()
|
||||
if lim:
|
||||
lim = " where " + lim
|
||||
t = self.col.db.scalar("select id from revlog %s order by id limit 1" % lim)
|
||||
if not t:
|
||||
period = 1
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue