Fix Dinosaurs bug where it wasn’t considering arrival date for feeds with no dates.

This commit is contained in:
Brent Simmons committed 2026-06-09 09:36:03 -07:00
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 {