Skip to content

Commit

Permalink
Fix/check review_limit only if is_learn is false (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Dec 21, 2024
1 parent 8cf1de8 commit 0625bfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fsrs"
version = "1.4.6"
version = "1.4.7"
authors = ["Open Spaced Repetition"]
categories = ["algorithms", "science"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src/optimal_retention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ pub fn simulate(
card_priorities.pop();
continue;
}
if (review_cnt_per_day[day_index] + 1 > review_limit)
if (!is_learn && review_cnt_per_day[day_index] + 1 > review_limit)
|| (is_learn && learn_cnt_per_day[day_index] + 1 > learn_limit)
|| (cost_per_day[day_index] + fail_cost > max_cost_perday)
{
Expand Down

0 comments on commit 0625bfa

Please sign in to comment.