formatting fixes

This commit is contained in:
Damien Elmes 2020-02-25 17:56:46 +10:00
parent db69f84c0a
commit 65ec9d190d
2 changed files with 7 additions and 3 deletions

View File

@ -1503,7 +1503,7 @@ border: 1px solid #000; padding: 3px; '>%s</div>"""
s += ("<td align=right>%s</td>" * 2) % (
"%d%%" % (factor / 10) if factor else "",
self.col.backend.format_time_span(taken)
self.col.backend.format_time_span(taken),
) + "</tr>"
s += "</table>"
if cnt < self.card.reps:
@ -1775,7 +1775,6 @@ where id in %s"""
else:
av_player.maybe_interrupt()
txt = self.mw.prepare_card_text_for_display(txt)
txt = gui_hooks.card_will_show(
txt, c, "preview" + self._previewState.capitalize()

View File

@ -17,7 +17,12 @@ from aqt.utils import checkInvalidFilename, getSaveFile, showWarning, tooltip
class ExportDialog(QDialog):
def __init__(self, mw: aqt.main.AnkiQt, did: Optional[int] = None, cids: Optional[List[int]] = None):
def __init__(
self,
mw: aqt.main.AnkiQt,
did: Optional[int] = None,
cids: Optional[List[int]] = None,
):
QDialog.__init__(self, mw, Qt.Window)
self.mw = mw
self.col = mw.col