Expose unread and download count of Manga in category api (#227)

* #224 Created view for unread and download badges

* #224 Basic test structure

* Created test and cleaned up a bit

* Move counts to MangaDataClass and delete MangaViewDataClass

* Readded trailing space

* Removed SQL view and calculate with joins now
This commit is contained in:
Sascha Hahne
2021-10-25 12:11:07 +02:00
committed by GitHub
parent d12974702a
commit 0057b35a0a
3 changed files with 153 additions and 12 deletions

View File

@@ -35,6 +35,8 @@ data class MangaDataClass(
val realUrl: String? = null,
val freshData: Boolean = false,
var unread_count: Int? = null,
var download_count: Int? = null
)
data class PagedMangaListDataClass(