Wrap studied_today in div and span in deckbrowser

This commit is contained in:
Henrik Giesel 2021-01-03 14:54:44 +01:00
parent 85621867ca
commit 0a121077de

View File

@ -140,7 +140,9 @@ class DeckBrowser:
self.web.eval("$(function() { window.scrollTo(0, %d, 'instant'); });" % offset) self.web.eval("$(function() { window.scrollTo(0, %d, 'instant'); });" % offset)
def _renderStats(self): 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: def _renderDeckTree(self, top: DeckTreeNode) -> str:
buf = """ buf = """