Fix last_review_time assignment in Card class to use last_review_time_secs

This commit is contained in:
Jarrett Ye 2025-06-26 22:13:58 +08:00
parent 89fb2e2fd9
commit 6ef48f509c
No known key found for this signature in database
GPG key ID: EBFC55E0C1A352BB

View file

@ -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: