fix display of review time in history

This commit is contained in:
Damien Elmes 2011-11-29 10:34:21 +09:00
parent 0c104af809
commit 56e8c40d57

View file

@ -749,7 +749,7 @@ class Browser(QMainWindow):
s += ("<th align=right>%s</th>" * 5) % ( s += ("<th align=right>%s</th>" * 5) % (
_("Type"), _("Ease"), _("Interval"), _("Factor"), _("Time")) _("Type"), _("Ease"), _("Interval"), _("Factor"), _("Time"))
for (date, ease, ivl, factor, taken, type) in self.mw.col.db.execute( for (date, ease, ivl, factor, taken, type) in self.mw.col.db.execute(
"select time/1000, ease, ivl, factor, taken/1000.0, type " "select id/1000.0, ease, ivl, factor, time/1000.0, type "
"from revlog where cid = ?", self.card.id): "from revlog where cid = ?", self.card.id):
s += "<tr><td>%s</td>" % time.strftime(_("<b>%Y-%m-%d</b> @ %H:%M"), s += "<tr><td>%s</td>" % time.strftime(_("<b>%Y-%m-%d</b> @ %H:%M"),
time.localtime(date)) time.localtime(date))