pull/32/head
kunfei 5 years ago
parent 6bafe1dacd
commit 47d93aea7e
  1. 2
      app/src/main/java/io/legado/app/data/dao/BookSourceDao.kt
  2. 2
      app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt

@ -32,7 +32,7 @@ interface BookSourceDao {
@Query("select * from book_sources where bookSourceGroup like '%' || :group || '%'")
fun getByGroup(group: String): List<BookSource>
@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<BookSource>
@get:Query("select * from book_sources order by customOrder asc")

@ -51,7 +51,7 @@ interface ReplaceRuleDao {
@Query("select * from replace_rules where `group` like '%' || :group || '%'")
fun getByGroup(group: String): List<ReplaceRule>
@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<ReplaceRule>
@get:Query("SELECT COUNT(*) - SUM(isEnabled) FROM replace_rules")

Loading…
Cancel
Save