From 2dbc6d60ca115ca57509f74783abc83d8323f0a1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 4 Nov 2019 16:55:36 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/dao/BookDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/data/dao/BookDao.kt b/app/src/main/java/io/legado/app/data/dao/BookDao.kt index 70091e69d..ba1d7e67e 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookDao.kt @@ -35,7 +35,7 @@ interface BookDao { @get:Query("SELECT * FROM books") val allBooks: List - @get:Query("SELECT * FROM books ORDER BY durChapterTime DESC limit 1") + @get:Query("SELECT * FROM books where type = 0 ORDER BY durChapterTime DESC limit 1") val lastReadBook: Book? @get:Query("SELECT bookUrl FROM books")