fix display of 1+ day intervals in review history

https://anki.tenderapp.com/discussions/ankidesktop/39189-interval-field-of-card-info-display-wrong-unit
This commit is contained in:
Damien Elmes 2020-02-25 17:00:02 +10:00
parent 32b38bf26d
commit fd835d9b64

View file

@ -1494,6 +1494,8 @@ border: 1px solid #000; padding: 3px; '>%s</div>"""
if ivl == 0:
ivl = ""
else:
if ivl > 0:
ivl *= 86_400
ivl = cs.time(abs(ivl))
s += "<td align=right>%s</td>" % tstr
s += "<td align=center>%s</td>" % ease