Skip to content

Commit

Permalink
rss源搜索增加注释字段 (gedoor#4572)
Browse files Browse the repository at this point in the history
  • Loading branch information
niu-hb authored Jan 25, 2025
1 parent aa70f71 commit 83507d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/io/legado/app/data/dao/RssSourceDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ interface RssSourceDao {
where sourceName like '%' || :key || '%'
or sourceUrl like '%' || :key || '%'
or sourceGroup like '%' || :key || '%'
or sourceComment like '%' || :key || '%'
order by customOrder"""
)
fun flowSearch(key: String): Flow<List<RssSource>>
Expand Down Expand Up @@ -69,7 +70,8 @@ interface RssSourceDao {
where enabled = 1
and (sourceName like '%' || :searchKey || '%'
or sourceGroup like '%' || :searchKey || '%'
or sourceUrl like '%' || :searchKey || '%')
or sourceUrl like '%' || :searchKey || '%'
or sourceComment like '%' || :searchKey || '%')
order by customOrder"""
)
fun flowEnabled(searchKey: String): Flow<List<RssSource>>
Expand Down

0 comments on commit 83507d1

Please sign in to comment.