From 6ef48f509cff9d3bb9b4fc8a1d62f5c89afbe111 Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Thu, 26 Jun 2025 22:13:58 +0800 Subject: [PATCH] Fix last_review_time assignment in Card class to use last_review_time_secs --- pylib/anki/cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/cards.py b/pylib/anki/cards.py index 176399bf8..d98447bd6 100644 --- a/pylib/anki/cards.py +++ b/pylib/anki/cards.py @@ -105,7 +105,7 @@ class Card(DeprecatedNamesMixin): ) self.decay = card.decay if card.HasField("decay") else None self.last_review_time = ( - card.last_review_time 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: