Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
user1823 authored Jan 11, 2025
1 parent ab2b415 commit 1a4fa75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rslib/src/scheduler/fsrs/memory_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl Collection {
let mut card = self.storage.get_card(card_id)?.or_not_found(card_id)?;
let original = card.clone();
if let (Some(req), Some(item)) = (&req, item) {
card.set_memory_state(&fsrs, item, historical_retention.unwrap())?;
card.set_memory_state(&fsrs, Some(item), historical_retention.unwrap())?;
card.desired_retention = desired_retention;
// if rescheduling
if let Some(reviews) = &last_revlog_info {
Expand Down

0 comments on commit 1a4fa75

Please sign in to comment.