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

View file

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