mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-30 10:44:59 +01:00
Fix bug fetching unread count for single feed.
This commit is contained in:
parent
9317874478
commit
0c923a90db
@ -153,7 +153,7 @@ final class ArticlesTable {
|
||||
func unreadCount(feedID: String, database: FMDatabase) -> Int? {
|
||||
|
||||
let sql = "select count(*) from articles natural join statuses where feedID=? and read=0;"
|
||||
let unreadCount = database.count(sql: sql, parameters: nil, tableName: name)
|
||||
let unreadCount = database.count(sql: sql, parameters: [feedID], tableName: name)
|
||||
return unreadCount
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user