func (r *Repo) BuryRelatedCards(ctx context.Context, card *fb.Card) error {
	defer profile("BuryRelatedCards")()
	db, err := r.userDB(ctx)
	if err != nil {
		return err
	}
	cards, err := fetchRelatedCards(ctx, db, card.ID)
	if err != nil {
		return err
	}
	toBury := setBurials(card.Interval, cards)
	if len(toBury) == 0 {
		return nil
	}
	return updateDocs(ctx, db, toBury)
}
// BuryRelatedCards buries related cards.
//
// The burial strategy involves the following:
//
// 1. New cards (reviewCount = 0) are buried for NewBuryTime. This should help
//    start of new card review to get off on the right foot.
// 2. All related cards are buried for a minimum of 1 day (this is all Anki does)
// 3. The target burial time is the current card's interval, divided by the number
//    of related cards. NewBuryTime is used as the minimum target burial time.
// 4. The maximum burial is MaxBuryRatio of the card's interval.
BuryRelatedCards buries related cards.

The burial strategy involves the following.

1. New cards (reviewCount = 0) are buried for NewBuryTime. This should help
start of new card review to get off on the right foot.
2. All related cards are buried for a minimum of 1 day (this is all Anki does)
3. The target burial time is the current card's interval, divided by the number
of related cards. NewBuryTime is used as the minimum target burial time.
4. The maximum burial is MaxBuryRatio of the card's interval.
// BuryRelatedCards buries related cards . // // The burial strategy involves the following : // // 1 . New cards ( reviewCount = 0 ) are buried for NewBuryTime . This should help // start of new card review to get off on the right foot . // 2 . All related cards are buried for a minimum of 1 day ( this is all Anki does ) // 3 . The target burial time is the current card ' s interval divided by the number // of related cards . NewBuryTime is used as the minimum target burial time . // 4 . The maximum burial is MaxBuryRatio of the card ' s interval .
func (r *Repo) BuryRelatedCards(ctx context.Context, card *fb.Card) error {
	defer profile("BuryRelatedCards")()
	db, err := r.userDB(ctx)
	if err != nil {
		return err
	}
	cards, err := fetchRelatedCards(ctx, db, card.ID)
	if err != nil {
		return err
	}
	toBury := setBurials(card.Interval, cards)
	if len(toBury) == 0 {
		return nil
	}
	return updateDocs(ctx, db, toBury)
}
func ( r * Repo ) BuryRelatedCards ( ctx context . Context , card * fb . Card ) error { defer profile ( " " ) ( ) db , err := r . userDB ( ctx ) if err != nil { return err } cards , err := fetchRelatedCards ( ctx , db , card . ID ) if err != nil { return err } toBury := setBurials ( card . Interval , cards ) if len ( toBury ) == 0 { return nil } return updateDocs ( ctx , db , toBury ) }
BuryRelatedCards buries related cards.
BuryRelatedCards buries related cards .