/// <summary> /// Applies the correct timing to the items, according to the configuration. /// </summary> public void ApplyTiming() { // Timing is applied only to entries that do not already have a next answer date // and that are not in a final SRS level. List <SrsEntry> eligibleEntries = NewEntries.Where(e => !e.NextAnswerDate.HasValue && !SrsLevelStore.Instance.IsFinalLevel(e.CurrentGrade, false)).ToList(); Timing.ApplyTiming(eligibleEntries); }
/// <summary> /// Applies the correct timing to the items, according to the configuration. /// </summary> public void ApplyTiming() { // Timing is applied only to entries that do not already have a next answer date // and that are not in a final SRS level. var srsDao = new SrsEntryDao(); List <SrsEntry> eligibleEntries = NewEntries.Where(e => !e.NextAnswerDate.HasValue && !SrsLevelStore.Instance.IsFinalLevel(e.CurrentGrade, false) && (DuplicateOptions.DuplicateNewItemAction != ImportDuplicateNewItemAction.Ignore || srsDao.GetSimilarItem(e) == null) ).ToList(); Timing.ApplyTiming(eligibleEntries); }