Use SQLDelight on Updates screen (#7423)

This commit is contained in:
Andreas
2022-07-01 04:18:12 +02:00
committed by GitHub
parent b9e108eb4d
commit 1f10b79ee8
9 changed files with 156 additions and 125 deletions

View File

@ -76,6 +76,16 @@ FROM mangas
WHERE favorite = 0
GROUP BY source;
getRecentlyUpdated:
SELECT *
FROM mangas M
JOIN chapters C
ON M._id = C.manga_id
WHERE M.favorite = 1
AND C.date_upload > :after
AND C.date_fetch > M.date_added
ORDER BY C.date_upload DESC;
deleteMangasNotInLibraryBySourceIds:
DELETE FROM mangas
WHERE favorite = 0 AND source IN :sourceIds;