From 7f450e185dd6594bc56446f0c417dc4c2d327c48 Mon Sep 17 00:00:00 2001 From: scb261 <65343233+scb261@users.noreply.github.com> Date: Sun, 14 Mar 2021 22:38:21 +0200 Subject: [PATCH] Use fetch date instead of upload date when querying recent chapters (#4645) --- .../eu/kanade/tachiyomi/data/database/queries/RawQueries.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 e24dd69db..0521ba95b 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,9 +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_UPLOAD} > ? + AND ${Chapter.COL_DATE_FETCH} > ? AND ${Chapter.COL_DATE_FETCH} > ${Manga.COL_DATE_ADDED} - ORDER BY ${Chapter.COL_DATE_UPLOAD} DESC + ORDER BY ${Chapter.COL_DATE_FETCH} DESC """ /**