Skip to content

Commit

Permalink
Fix: New card pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc-Mcgrady committed Oct 12, 2024
1 parent e8ea727 commit edb971f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/optimal_retention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ pub fn simulate(
card_priorities.pop();
continue;
}
else if review_cnt_per_day[day_index] + learn_cnt_per_day[day_index] + 1 > review_limit {
if (review_cnt_per_day[day_index] + learn_cnt_per_day[day_index] + 1 > review_limit)
|| (!not_learn && learn_cnt_per_day[day_index] + 1 > learn_limit)
{

dbg!(&learn_cnt_per_day[day_index]);

card.due += 1.;
card_priorities.change_priority(&card_index, card_priority(card, !not_learn));
continue;
Expand Down

0 comments on commit edb971f

Please sign in to comment.