mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
show the latest review instead
This commit is contained in:
parent
5394740ea7
commit
884405d2a6
1 changed files with 5 additions and 2 deletions
|
|
@ -24,9 +24,12 @@ class CardStats(object):
|
||||||
self.txt = "<table width=100%%>"
|
self.txt = "<table width=100%%>"
|
||||||
self.addLine(_("Added"), self.strTime(c.crt))
|
self.addLine(_("Added"), self.strTime(c.crt))
|
||||||
first = self.deck.db.scalar(
|
first = self.deck.db.scalar(
|
||||||
"select time/1000 from revlog where rep = 1 and cid = :id", id=c.id)
|
"select min(time) from revlog where cid = ?", c.id)
|
||||||
|
last = self.deck.db.scalar(
|
||||||
|
"select max(time) from revlog where cid = ?", c.id)
|
||||||
if first:
|
if first:
|
||||||
self.addLine(_("First Review"), self.strTime(first))
|
self.addLine(_("First Review"), self.strTime(first/1000))
|
||||||
|
self.addLine(_("Latest Review"), self.strTime(last/1000))
|
||||||
if c.reps:
|
if c.reps:
|
||||||
if c.queue == 2:
|
if c.queue == 2:
|
||||||
next = time.time()+((self.deck.sched.today - c.due)*86400)
|
next = time.time()+((self.deck.sched.today - c.due)*86400)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue