mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 18:10:16 +00:00
Fix Dinosaurs bug where it wasn’t considering arrival date for feeds with no dates.
This commit is contained in:
1 parent
5e18b26014
commit
83dfe7ee75
1 file changed
+1
-1
@@ -1047,7 +1047,7 @@ nonisolated private extension ArticlesTable {
|
||||
}
|
||||
|
||||
func fetchLastUpdateDates(_ database: FMDatabase) -> [String: Date] {
|
||||
guard let resultSet = database.executeQuery("SELECT feedID, MAX(coalesce(datePublished, dateModified)) as latestDate FROM articles GROUP BY feedID;", withArgumentsIn: []) else {
|
||||
guard let resultSet = database.executeQuery("SELECT feedID, MAX(coalesce(datePublished, dateModified, dateArrived)) as latestDate FROM articles natural join statuses GROUP BY feedID;", withArgumentsIn: []) else {
|
||||
return [:]
|
||||
}
|
||||
defer {
|
||||
|
||||
Reference in new issue
Block a user