From aa46765e8d84161c2a1633d4d06ba04a34916778 Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Thu, 26 Jun 2025 22:23:00 +0800 Subject: [PATCH] format --- pylib/anki/cards.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylib/anki/cards.py b/pylib/anki/cards.py index d98447bd6..95e4ac7b9 100644 --- a/pylib/anki/cards.py +++ b/pylib/anki/cards.py @@ -105,7 +105,9 @@ class Card(DeprecatedNamesMixin): ) self.decay = card.decay if card.HasField("decay") else None self.last_review_time = ( - card.last_review_time_secs if card.HasField("last_review_time_secs") else None + card.last_review_time_secs + if card.HasField("last_review_time_secs") + else None ) def _to_backend_card(self) -> cards_pb2.Card: