From 9621fab9021081a854c18375bbb0d1580e63d8d3 Mon Sep 17 00:00:00 2001 From: reasv <7143787+reasv@users.noreply.github.com> Date: Tue, 30 Mar 2021 05:09:13 +0200 Subject: [PATCH] Set page priority for images --- sqlx-data.json | 4 ++-- src/db.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlx-data.json b/sqlx-data.json index c127cb4..2b61211 100644 --- a/sqlx-data.json +++ b/sqlx-data.json @@ -1790,8 +1790,8 @@ ] } }, - "fd805ef66d1d065929e69303b968fa6fdf14111b701c4c0c31f83a189c4490d7": { - "query": "\n SELECT * FROM image_backlog\n ORDER BY id ASC\n LIMIT $1\n ", + "e3fcb30bd0439e028e9b9433da0d2c577ca1615fa822d14fb5618a0bcd68e0db": { + "query": "\n SELECT * FROM image_backlog\n ORDER BY (page, id) ASC\n LIMIT $1\n ", "describe": { "columns": [ { diff --git a/src/db.rs b/src/db.rs index 850dd58..0c9f2f6 100644 --- a/src/db.rs +++ b/src/db.rs @@ -72,7 +72,7 @@ impl DBClient { let jobs = sqlx::query_as!(ImageJob, " SELECT * FROM image_backlog - ORDER BY id ASC + ORDER BY (page, id) ASC LIMIT $1 ", limit