From ca57cb964c67925d868d96dd8e5bbe8d313f53c1 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Sun, 17 Oct 2021 22:14:44 +0200 Subject: [PATCH] Format --- pylib/anki/stats.py | 2 +- qt/aqt/browser/card_info.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)