mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix error generating parameters when a parameter is 0
This commit is contained in:
parent
980594252d
commit
9205b4db3a
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1813,7 +1813,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "fsrs"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=6e5ff8826c507d2f4323f2d73dda785b45f450b4#6e5ff8826c507d2f4323f2d73dda785b45f450b4"
|
||||
source = "git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=d8b2aad417346aaab9f72c399cde6119de1da52f#d8b2aad417346aaab9f72c399cde6119de1da52f"
|
||||
dependencies = [
|
||||
"burn",
|
||||
"itertools 0.12.0",
|
||||
|
|
|
@ -36,7 +36,7 @@ rev = "184b2ca50ed39ca43da13f0b830a463861adb9ca"
|
|||
|
||||
[workspace.dependencies.fsrs]
|
||||
git = "https://github.com/open-spaced-repetition/fsrs-rs.git"
|
||||
rev = "6e5ff8826c507d2f4323f2d73dda785b45f450b4"
|
||||
rev = "d8b2aad417346aaab9f72c399cde6119de1da52f"
|
||||
# path = "../../../fsrs-rs"
|
||||
|
||||
[workspace.dependencies]
|
||||
|
|
|
@ -147,7 +147,7 @@ impl Collection {
|
|||
let weight_len = conf.inner.fsrs_weights.len();
|
||||
if weight_len == 17 {
|
||||
for i in 0..17 {
|
||||
if !conf.inner.fsrs_weights[i].is_normal() {
|
||||
if !conf.inner.fsrs_weights[i].is_finite() {
|
||||
return Err(AnkiError::FsrsWeightsInvalid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue