From 47d93aea7e8b7691d2c65d19a7d38b25a95c3bac Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 7 Sep 2019 12:06:04 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt | 2 +- app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt b/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt index 97f7da559..ef66a2372 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt @@ -32,7 +32,7 @@ interface BookSourceDao { @Query("select * from book_sources where bookSourceGroup like '%' || :group || '%'") fun getByGroup(group: String): List - @get:Query("select * from book_sources where bookSourceGroup = null or bookSourceGroup = ''") + @get:Query("select * from book_sources where bookSourceGroup is null or bookSourceGroup = ''") val noGroup: List @get:Query("select * from book_sources order by customOrder asc") diff --git a/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt b/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt index b3488d8b3..907b96d71 100644 --- a/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt @@ -51,7 +51,7 @@ interface ReplaceRuleDao { @Query("select * from replace_rules where `group` like '%' || :group || '%'") fun getByGroup(group: String): List - @get:Query("select * from replace_rules where `group` = null or `group` = ''") + @get:Query("select * from replace_rules where `group` is null or `group` = ''") val noGroup: List @get:Query("SELECT COUNT(*) - SUM(isEnabled) FROM replace_rules")