mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
hourly graph now honours period setting
This commit is contained in:
parent
8a4d20de16
commit
0b24e56b40
1 changed files with 3 additions and 0 deletions
|
@ -533,6 +533,9 @@ order by thetype, ease""" % lim)
|
|||
if lim:
|
||||
lim = " and " + lim
|
||||
sd = datetime.datetime.fromtimestamp(self.col.crt)
|
||||
pd = self._periodDays()
|
||||
if pd:
|
||||
lim += " and id > %d" % ((self.col.sched.dayCutoff-(86400*pd))*1000)
|
||||
return self.col.db.all("""
|
||||
select
|
||||
23 - ((cast((:cut - id/1000) / 3600.0 as int)) %% 24) as hour,
|
||||
|
|
Loading…
Reference in a new issue