diff --git a/pylib/anki/stats.py b/pylib/anki/stats.py index 61ff1726d..013f6088c 100644 --- a/pylib/anki/stats.py +++ b/pylib/anki/stats.py @@ -28,7 +28,7 @@ def _legacy_card_stats( ) -> str: "A quick hack to preserve compatibility with the old HTML string API." random_id = f"cardinfo-{base62(random.randint(0, 2 ** 64 - 1))}" - varName = random_id.replace('-', '') + varName = random_id.replace("-", "") return f"""
diff --git a/qt/aqt/browser/card_info.py b/qt/aqt/browser/card_info.py index eeb6f47e5..1aff13f10 100644 --- a/qt/aqt/browser/card_info.py +++ b/qt/aqt/browser/card_info.py @@ -64,7 +64,7 @@ class CardInfoDialog(QDialog): self.setLayout(layout) self.web.eval( - "const cardInfo = anki.cardInfo(document.getElementById('main'));\n" \ + "const cardInfo = anki.cardInfo(document.getElementById('main'));\n" "cardInfo.then((c) => c.$set({ includeRevlog: true }));" ) self.update_card(card_id)