Skip to content

Commit

Permalink
Fix/skip rescheduling selected cards without memory state
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed May 18, 2024
1 parent 8f93eb9 commit 4f12233
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schedule/reschedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ def reschedule_card(cid, fsrs: FSRS, recompute=False):
memory_state = mw.col.compute_memory_state(cid)
s = memory_state.stability
d = memory_state.difficulty
if s is None or d is None:
return None
card.memory_state = FSRSMemoryState(stability=s, difficulty=d)
elif card.memory_state:
memory_state = card.memory_state
Expand Down

0 comments on commit 4f12233

Please sign in to comment.