Skip to content

Commit

Permalink
Fix priority ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
reasv committed Mar 30, 2021
1 parent b53dcfb commit 4d19827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl DBClient {
let jobs = sqlx::query_as!(ImageJob,
"
SELECT * FROM image_backlog
ORDER BY (page, id) ASC
ORDER BY page DESC, id ASC
LIMIT $1
",
limit
Expand Down Expand Up @@ -153,7 +153,7 @@ impl DBClient {
let jobs = sqlx::query_as!(ThreadJob,
"
SELECT * FROM thread_backlog
ORDER BY (page, id) ASC
ORDER BY page DESC, id ASC
LIMIT $1
",
limit
Expand Down

0 comments on commit 4d19827

Please sign in to comment.