Skip to content

Commit

Permalink
fix interval
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiko732 committed Jul 21, 2024
1 parent 2b47390 commit 3c15ca8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/fsrs/impl/basic_schduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export default class BasicScheduler extends AbstractScheduler {
this.next_interval(next_again, next_hard, next_good, next_easy, interval)
this.next_state(next_again, next_hard, next_good, next_easy)
next_again.lapses += 1


const item_again = {
card: next_again,
Expand Down Expand Up @@ -248,11 +247,7 @@ export default class BasicScheduler extends AbstractScheduler {
next_again.due = this.review_time.scheduler(5 as int)

next_hard.scheduled_days = hard_interval
next_hard.due =
hard_interval > 0
? this.review_time.scheduler(hard_interval, true)
: this.review_time.scheduler(10 as int)

next_hard.due = this.review_time.scheduler(hard_interval, true)
next_good.scheduled_days = good_interval
next_good.due = this.review_time.scheduler(good_interval, true)

Expand Down

0 comments on commit 3c15ca8

Please sign in to comment.