mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
rollover may not be set
This commit is contained in:
parent
c8c55c893d
commit
5632babee6
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@ order by thetype, ease""" % (ease4repl, lim))
|
|||
sd = datetime.datetime.fromtimestamp(self.col.crt)
|
||||
rolloverHour = sd.hour
|
||||
else:
|
||||
rolloverHour = self.col.conf["rollover"]
|
||||
rolloverHour = self.col.conf.get("rollover", 4)
|
||||
pd = self._periodDays()
|
||||
if pd:
|
||||
lim += " and id > %d" % ((self.col.sched.dayCutoff-(86400*pd))*1000)
|
||||
|
|
Loading…
Reference in a new issue