mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
format
This commit is contained in:
parent
6ef48f509c
commit
aa46765e8d
1 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue