Fix bug fetching unread count for single feed.

This commit is contained in:
Brent Simmons 2024-06-12 17:18:49 -07:00
parent 9317874478
commit 0c923a90db

View File

@ -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
}