mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
make it easier for callers to add extra lines
This commit is contained in:
parent
466c14421b
commit
497c25daa4
1 changed files with 6 additions and 2 deletions
|
@ -55,8 +55,12 @@ class CardStats(object):
|
|||
return self.txt
|
||||
|
||||
def addLine(self, k, v):
|
||||
self.txt += "<tr><td align=right style='padding-right: 3px;'>"
|
||||
self.txt += "<b>%s</b></td><td>%s</td></tr>" % (k, v)
|
||||
self.txt += self.makeLine(k, v)
|
||||
|
||||
def makeLine(self, k, v):
|
||||
txt = "<tr><td align=right style='padding-right: 3px;'>"
|
||||
txt += "<b>%s</b></td><td>%s</td></tr>" % (k, v)
|
||||
return txt
|
||||
|
||||
def date(self, tm):
|
||||
return time.strftime("%Y-%m-%d", time.localtime(tm))
|
||||
|
|
Loading…
Reference in a new issue