Fix empty tracker logs records

pull/311/head
Koitharu 3 years ago
parent bd27eb9f59
commit 7bea3caa07
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -113,7 +113,7 @@ class TrackingRepository @Inject constructor(
db.withTransaction { db.withTransaction {
val track = getOrCreateTrack(updates.manga.id).mergeWith(updates) val track = getOrCreateTrack(updates.manga.id).mergeWith(updates)
db.tracksDao.upsert(track) db.tracksDao.upsert(track)
if (updates.isValid /*&& updates.newChapters.isNotEmpty()*/) { if (updates.isValid && updates.newChapters.isNotEmpty()) {
updatePercent(updates) updatePercent(updates)
val logEntity = TrackLogEntity( val logEntity = TrackLogEntity(
mangaId = updates.manga.id, mangaId = updates.manga.id,

Loading…
Cancel
Save