From b00efa2d01a8f0b9ffbd44da280b33fb15084ce7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 13 Sep 2022 21:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/data/dao/BookDao.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 a3a091e55..6baa0b517 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 @@ -30,9 +30,8 @@ interface BookDao { @Query( """ - select * from books where type != ${BookType.audio} - and origin != '${BookType.local}' - and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0 + select * from books + where ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0 """ ) fun flowNoGroup(): Flow>