From 5b23f29d06da74c237d8e0ecc7772773ca0b4c1e Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 4 Apr 2021 18:11:11 -0400 Subject: [PATCH] Revert using fetch date for updates list Spamming the list post-migration is currently a more common usecase than sources without chapter dates. We'll need to figure out a better way of handling both scenarios. --- .../eu/kanade/tachiyomi/data/database/queries/RawQueries.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/RawQueries.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/RawQueries.kt index dac40b4491..c79246e6b1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/RawQueries.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/RawQueries.kt @@ -39,10 +39,9 @@ fun getRecentsQuery() = SELECT ${Manga.TABLE}.${Manga.COL_URL} as mangaUrl, * FROM ${Manga.TABLE} JOIN ${Chapter.TABLE} ON ${Manga.TABLE}.${Manga.COL_ID} = ${Chapter.TABLE}.${Chapter.COL_MANGA_ID} WHERE ${Manga.COL_FAVORITE} = 1 - AND ${Chapter.COL_DATE_FETCH} > ? + AND ${Chapter.COL_DATE_UPLOAD} > ? AND ${Chapter.COL_DATE_FETCH} > ${Manga.COL_DATE_ADDED} - ORDER BY ${Chapter.COL_DATE_FETCH} DESC - LIMIT 500 + ORDER BY ${Chapter.COL_DATE_UPLOAD} DESC """ /**