Skip to content

Commit

Permalink
use write_custom_data to modify the value of v
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiko732 committed Dec 2, 2024
1 parent e4a46d0 commit 1711ca2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions schedule/reschedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ def reschedule_card(cid, fsrs: FSRS, recompute=False):
else:
return None

new_custom_data = {"v": "reschedule"}
card.custom_data = json.dumps(new_custom_data)
write_custom_data(card, "v", "reschedule")

if card.type == CARD_TYPE_REV:
fsrs.set_card(card)
Expand Down

0 comments on commit 1711ca2

Please sign in to comment.