func Schedule(card *Card, answerDelay time.Duration, quality flashback.AnswerQuality) error {
	ivl, ease := schedule(card, quality)
	card.Due = fb.Due(now()).Add(ivl)
	card.Interval = ivl
	card.EaseFactor = ease
	if quality <= flashback.AnswerIncorrectEasy {
		card.ReviewCount = 0
	} else {
		card.LastReview = now().UTC()
		card.ReviewCount++
	}

	if card.Interval >= fb.Day {
		// Bury cards with an interval >= 1d; they would make no progress if
		// re-studied again today, due to fuzzing.
		bury := buryInterval(card.Interval, card.Interval, false)
		card.BuriedUntil = fb.Due(now().UTC()).Add(bury)
		// card.BuriedUntil = fb.Due(now().UTC()).Add(fb.Day)
	} else {
		// Bury cards with sub-day intervals until they are due. We only allow
		// forward-fuzzing for intervals > 1 day.
		card.BuriedUntil = card.Due
	}

	return nil
}
// Schedule implements the default scheduler.
Schedule implements the default scheduler.
// Schedule implements the default scheduler .
func Schedule(card *Card, answerDelay time.Duration, quality flashback.AnswerQuality) error {
	ivl, ease := schedule(card, quality)
	card.Due = fb.Due(now()).Add(ivl)
	card.Interval = ivl
	card.EaseFactor = ease
	if quality <= flashback.AnswerIncorrectEasy {
		card.ReviewCount = 0
	} else {
		card.LastReview = now().UTC()
		card.ReviewCount++
	}
	if card.Interval >= fb.Day {
		bury := buryInterval(card.Interval, card.Interval, false)
		card.BuriedUntil = fb.Due(now().UTC()).Add(bury)
	} else {
		card.BuriedUntil = card.Due
	}
	return nil
}
func Schedule ( card * Card , answerDelay time . Duration , quality flashback . AnswerQuality ) error { ivl , ease := schedule ( card , quality ) card . Due = fb . Due ( now ( ) ) . Add ( ivl ) card . Interval = ivl card . EaseFactor = ease if quality <= flashback . AnswerIncorrectEasy { card . ReviewCount = 0 } else { card . LastReview = now ( ) . UTC ( ) card . ReviewCount ++ } if card . Interval >= fb . Day { bury := buryInterval ( card . Interval , card . Interval , false ) card . BuriedUntil = fb . Due ( now ( ) . UTC ( ) ) . Add ( bury ) } else { card . BuriedUntil = card . Due } return nil }
Schedule implements the default scheduler.
Schedule implements the default scheduler .
// Bury cards with an interval >= 1d; they would make no progress if // re-studied again today, due to fuzzing. // card.BuriedUntil = fb.Due(now().UTC()).Add(fb.Day) // Bury cards with sub-day intervals until they are due. We only allow // forward-fuzzing for intervals > 1 day.