From 5f05bb0b631c71649d14cf8297cb7f6892de70f2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 23 Sep 2022 22:24:23 +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 | 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 d95853a41..48915f1b0 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 @@ -38,7 +38,7 @@ interface BookDao { @Query( """ - select * from books where type != ${BookType.audio} and origin != '${BookType.local}' + select * from books where type != ${BookType.audio} and origin = '${BookType.local}' and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0 """ )