Small Tweaks before Release (#2571)
Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
This commit is contained in:
parent
95a186e252
commit
1d56f5a0a1
12 changed files with 43 additions and 71 deletions
|
@ -108,6 +108,7 @@ public class StatisticService : IStatisticService
|
|||
.Join(_context.Chapter, p => p.ChapterId, c => c.Id,
|
||||
(p, c) => new
|
||||
{
|
||||
// TODO: See if this can be done in the DB layer
|
||||
AverageReadingHours = Math.Min((float) p.PagesRead / (float) c.Pages, 1.0) *
|
||||
((float) c.AvgHoursToRead)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue