Skip to content

Commit

Permalink
Fix recipes searching order
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Mar 5, 2024
1 parent c755962 commit 5bb827a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "web-source-server"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
license = "AGPL-3.0-or-later"

Expand Down
3 changes: 2 additions & 1 deletion src-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ async fn recipe_table(req: &mut Request, depot: &mut Depot, res: &mut Response)
"required_craftsmanship",
)
.column_as(recipes::Column::RequiredControl, "required_control")
.column_as(recipes::Column::CanHq, "can_hq");
.column_as(recipes::Column::CanHq, "can_hq")
.order_by(recipes::Column::Id, Order::Asc);
let paginate = query.into_model::<RecipeInfo>().paginate(&state.conn, 200);

let p = paginate.num_pages().await.map_err(|err| {
Expand Down

0 comments on commit 5bb827a

Please sign in to comment.