mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 00:27:13 -05: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)
|
sd = datetime.datetime.fromtimestamp(self.col.crt)
|
||||||
rolloverHour = sd.hour
|
rolloverHour = sd.hour
|
||||||
else:
|
else:
|
||||||
rolloverHour = self.col.conf["rollover"]
|
rolloverHour = self.col.conf.get("rollover", 4)
|
||||||
pd = self._periodDays()
|
pd = self._periodDays()
|
||||||
if pd:
|
if pd:
|
||||||
lim += " and id > %d" % ((self.col.sched.dayCutoff-(86400*pd))*1000)
|
lim += " and id > %d" % ((self.col.sched.dayCutoff-(86400*pd))*1000)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue