Fixed: bookshelf count and colour (#30)

* Add total book count to the result set from the statistics query

* Rename TotalTrackCount and map it

* Fix the colouring of the book count/percentage
pull/31/head
Thomas Mathews 4 years ago committed by GitHub
parent 22679d6187
commit 324db4959d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,5 +9,6 @@ namespace NzbDrone.Core.AuthorStats
public int BookFileCount { get; set; }
public int BookCount { get; set; }
public long SizeOnDisk { get; set; }
public int TotalBookCount { get; set; }
}
}

@ -6,10 +6,10 @@ namespace Readarr.Api.V1.Books
{
public int BookFileCount { get; set; }
public int BookCount { get; set; }
public int TotalTrackCount { get; set; }
public int TotalBookCount { get; set; }
public long SizeOnDisk { get; set; }
public decimal PercentOfTracks
public decimal PercentOfBooks
{
get
{
@ -36,7 +36,8 @@ namespace Readarr.Api.V1.Books
{
BookFileCount = model.BookFileCount,
BookCount = model.BookCount,
SizeOnDisk = model.SizeOnDisk
SizeOnDisk = model.SizeOnDisk,
TotalBookCount = model.TotalBookCount
};
}
}

Loading…
Cancel
Save