mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Fix backend
This commit is contained in:
parent
75ccf58765
commit
1cfe9d82d0
1 changed files with 2 additions and 2 deletions
|
|
@ -110,9 +110,9 @@ impl DeckConfig {
|
|||
|
||||
/// Retrieve the FSRS 6.0 params, falling back on 5.0 or 4.x ones.
|
||||
pub fn fsrs_params(&self) -> &Vec<f32> {
|
||||
if self.inner.fsrs_params_6.len() == 21 {
|
||||
if self.inner.fsrs_params_6.len() > 0 {
|
||||
&self.inner.fsrs_params_6
|
||||
} else if self.inner.fsrs_params_5.len() == 19 {
|
||||
} else if self.inner.fsrs_params_5.len() > 0 {
|
||||
&self.inner.fsrs_params_5
|
||||
} else {
|
||||
&self.inner.fsrs_params_4
|
||||
|
|
|
|||
Loading…
Reference in a new issue