Closed ishiko732 closed 1 year ago
在test.py中: https://github.com/open-spaced-repetition/py-fsrs/blob/464543779f7e8ebaca18697cdf84fe8cd0dc766d/tests/test_fsrs.py#L26-L31
test.py
在29行开始做修改:
card = scheduling_cards[Rating.Good].card good_card = card print(good_card.__dict__) now = card.due scheduling_cards = f.repeat(card, now) print(good_card.__dict__)
打印的结果发生改变:
应当在fsrs.py的repeat添加card = copy.deepcopy(card):
fsrs.py
repeat
card = copy.deepcopy(card)
def repeat(self, card: Card, now: datetime) -> dict[int, SchedulingInfo]: card = copy.deepcopy(card) if card.state == State.New:
OK 明天修一下
在
test.py
中: https://github.com/open-spaced-repetition/py-fsrs/blob/464543779f7e8ebaca18697cdf84fe8cd0dc766d/tests/test_fsrs.py#L26-L31在29行开始做修改:
打印的结果发生改变:
应当在
fsrs.py
的repeat
添加card = copy.deepcopy(card)
: