mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -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.addLine(_("Added"), self.strTime(c.crt))
|
||||
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:
|
||||
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.queue == 2:
|
||||
next = time.time()+((self.deck.sched.today - c.due)*86400)
|
||||
|
|
|
|||
Loading…
Reference in a new issue