mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
revert to defaults when schema 11 deck config can not be read
Allows decks with missing/null values like ivlFct to be opened. https://forums.ankiweb.net/t/i-cant-access-ankiweb/11814
This commit is contained in:
parent
c6c9721c53
commit
cc65196b0a
1 changed files with 3 additions and 0 deletions
|
@ -29,8 +29,11 @@ pub struct DeckConfSchema11 {
|
|||
timer: u8,
|
||||
#[serde(default)]
|
||||
replayq: bool,
|
||||
#[serde(deserialize_with = "default_on_invalid")]
|
||||
pub(crate) new: NewConfSchema11,
|
||||
#[serde(deserialize_with = "default_on_invalid")]
|
||||
pub(crate) rev: RevConfSchema11,
|
||||
#[serde(deserialize_with = "default_on_invalid")]
|
||||
pub(crate) lapse: LapseConfSchema11,
|
||||
#[serde(rename = "dyn", default, deserialize_with = "default_on_invalid")]
|
||||
dynamic: bool,
|
||||
|
|
Loading…
Reference in a new issue