From c12a4e03ab8d6bfed1fb1dabc000370fc4d8ece7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 4 Aug 2019 20:01:05 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt b/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt index 668adda13..e7cf630d0 100644 --- a/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/SearchBookDao.kt @@ -14,7 +14,7 @@ interface SearchBookDao { fun observeAll(): DataSource.Factory // @Query("SELECT name, author, '' bookUrl, '' origin, '' originName, count(origin) originCount, min(time) time, max(intro) intro, max(kind) kind, max(coverUrl) coverUrl, max(latestChapterTitle) latestChapterTitle FROM searchBooks where time >= :time group by name and author order by searchOrder and originOrder and time") - @Query("SELECT * FROM searchBooks") + @Query("SELECT * FROM searchBooks where time >= :time") fun observeNew(time: Long): DataSource.Factory