New chapters counters in lists

This commit is contained in:
Koitharu
2022-02-27 09:28:25 +02:00
parent 1f7252fd12
commit b3781abdeb
19 changed files with 149 additions and 33 deletions

View File

@@ -12,8 +12,7 @@ class TrackingRepository(
) {
suspend fun getNewChaptersCount(mangaId: Long): Int {
val entity = db.tracksDao.find(mangaId) ?: return 0
return entity.newChapters
return db.tracksDao.findNewChapters(mangaId) ?: 0
}
suspend fun getAllTracks(useFavourites: Boolean, useHistory: Boolean): List<MangaTracking> {