Colorscape Love (#3326)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
b44f89d1e8
commit
a847468a6c
42 changed files with 1009 additions and 429 deletions
|
|
@ -248,6 +248,7 @@ public class ReadingListRepository : IReadingListRepository
|
|||
ChapterTitleName = chapter.TitleName,
|
||||
FileSize = chapter.Files.Sum(f => f.Bytes),
|
||||
chapter.Summary,
|
||||
chapter.IsSpecial
|
||||
|
||||
})
|
||||
.Join(_context.Volume, s => s.ReadingListItem.VolumeId, volume => volume.Id, (data, volume) => new
|
||||
|
|
@ -259,6 +260,7 @@ public class ReadingListRepository : IReadingListRepository
|
|||
data.ChapterTitleName,
|
||||
data.FileSize,
|
||||
data.Summary,
|
||||
data.IsSpecial,
|
||||
VolumeId = volume.Id,
|
||||
VolumeNumber = volume.Name,
|
||||
})
|
||||
|
|
@ -277,6 +279,7 @@ public class ReadingListRepository : IReadingListRepository
|
|||
data.ChapterTitleName,
|
||||
data.FileSize,
|
||||
data.Summary,
|
||||
data.IsSpecial,
|
||||
LibraryName = _context.Library.Where(l => l.Id == s.LibraryId).Select(l => l.Name).Single(),
|
||||
LibraryType = _context.Library.Where(l => l.Id == s.LibraryId).Select(l => l.Type).Single()
|
||||
})
|
||||
|
|
@ -299,7 +302,8 @@ public class ReadingListRepository : IReadingListRepository
|
|||
ChapterTitleName = data.ChapterTitleName,
|
||||
LibraryName = data.LibraryName,
|
||||
FileSize = data.FileSize,
|
||||
Summary = data.Summary
|
||||
Summary = data.Summary,
|
||||
IsSpecial = data.IsSpecial
|
||||
})
|
||||
.Where(o => userLibraries.Contains(o.LibraryId))
|
||||
.OrderBy(rli => rli.Order)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue