Merge pull request #888 from hgiesel/studiedtoday

Wrap studied_today in deckbrowser in div and span
This commit is contained in:
Damien Elmes 2021-01-04 14:27:35 +10:00 committed by GitHub
commit 94fe1f898f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,9 @@ class DeckBrowser:
self.web.eval("$(function() { window.scrollTo(0, %d, 'instant'); });" % offset)
def _renderStats(self):
return self.mw.col.studied_today()
return '<div id="studiedToday"><span>{}</span></div>'.format(
self.mw.col.studied_today(),
)
def _renderDeckTree(self, top: DeckTreeNode) -> str:
buf = """