mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Order updates by fetch date in the queries themselves
The updates queries relied on the view's ORDER BY surviving into the query that reads from it, which SQLite doesn't promise. Each now orders by fetch date itself.
This commit is contained in:
@@ -29,6 +29,7 @@ getRecentUpdates:
|
||||
SELECT *
|
||||
FROM updatesView
|
||||
WHERE dateUpload > :after
|
||||
ORDER BY datefetch DESC
|
||||
LIMIT :limit;
|
||||
|
||||
getRecentUpdatesWithFilters:
|
||||
@@ -73,6 +74,7 @@ AND (
|
||||
)
|
||||
)
|
||||
)
|
||||
ORDER BY datefetch DESC
|
||||
LIMIT :limit;
|
||||
|
||||
getUpdatesByReadStatus:
|
||||
@@ -80,4 +82,5 @@ SELECT *
|
||||
FROM updatesView
|
||||
WHERE read = :read
|
||||
AND dateUpload > :after
|
||||
ORDER BY datefetch DESC
|
||||
LIMIT :limit;
|
||||
|
||||
Reference in New Issue
Block a user