Fix my own screwup

This commit is contained in:
Michael Bucari-Tovo 2022-05-26 21:26:56 -06:00
parent 9c20250b0a
commit b2d0ee41f2
3 changed files with 9 additions and 20 deletions

View file

@ -86,7 +86,8 @@ namespace LibationWinForms.GridView
var episodes = dbBooks.Where(b => b.IsEpisodeChild()).ToList();
foreach (var series in episodes.SelectMany(lb => lb.Book.SeriesLink).DistinctBy(s => s.Series))
var allSeries = episodes.SelectMany(lb => lb.Book.SeriesLink.Where(s => !s.Series.AudibleSeriesId.StartsWith("SERIES_"))).DistinctBy(s => s.Series).ToList();
foreach (var series in allSeries)
{
var seriesEntry = new SeriesEntry(series, episodes.Where(lb => lb.Book.SeriesLink.Any(s => s.Series == series.Series)));