mirror of
https://github.com/ankitects/anki.git
synced 2025-12-31 07:43:02 -05:00
coerce some more invalid decimal values to ints during sync
This commit is contained in:
parent
3988010aa2
commit
c1bd783735
2 changed files with 4 additions and 2 deletions
|
|
@ -3,8 +3,8 @@ select
|
|||
cid,
|
||||
usn,
|
||||
ease,
|
||||
ivl,
|
||||
lastIvl,
|
||||
cast(ivl AS integer),
|
||||
cast(lastIvl AS integer),
|
||||
factor,
|
||||
time,
|
||||
type
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ pub struct CardEntry {
|
|||
pub usn: Usn,
|
||||
pub ctype: CardType,
|
||||
pub queue: CardQueue,
|
||||
#[serde(deserialize_with = "deserialize_int_from_number")]
|
||||
pub due: i32,
|
||||
#[serde(deserialize_with = "deserialize_int_from_number")]
|
||||
pub ivl: u32,
|
||||
|
|
@ -152,6 +153,7 @@ pub struct CardEntry {
|
|||
pub reps: u32,
|
||||
pub lapses: u32,
|
||||
pub left: u32,
|
||||
#[serde(deserialize_with = "deserialize_int_from_number")]
|
||||
pub odue: i32,
|
||||
pub odid: DeckID,
|
||||
pub flags: u8,
|
||||
|
|
|
|||
Loading…
Reference in a new issue