aboutsummaryrefslogtreecommitdiff
path: root/src/db/balancing.rs
diff options
context:
space:
mode:
authorJoris Guyonvarch2026-04-18 11:29:38 +0200
committerJoris Guyonvarch2026-04-18 11:29:38 +0200
commit26a02489721cbf81a3e8c09c095aee5ff5786275 (patch)
tree49b35339b3e5b2b2b94296a3e7cc8ea75a8c0b29 /src/db/balancing.rs
parent94520e13a7f1bf45e94b4f28ea37f3703763baf7 (diff)
Format sourcesmain
Diffstat (limited to 'src/db/balancing.rs')
-rw-r--r--src/db/balancing.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/db/balancing.rs b/src/db/balancing.rs
index 8914eef..379576b 100644
--- a/src/db/balancing.rs
+++ b/src/db/balancing.rs
@@ -1,7 +1,7 @@
use tokio_rusqlite::{Connection, Row, named_params};
use crate::db::utils;
-use crate::model::balancing::{Balancing, Create, Update, TableRow};
+use crate::model::balancing::{Balancing, Create, TableRow, Update};
fn row_to_balancing(row: &Row) -> Result<Balancing, rusqlite::Error> {
Ok(Balancing {
@@ -36,7 +36,11 @@ pub async fn count(conn: &Connection) -> i64 {
}
}
-pub async fn list_for_table(conn: &Connection, page: i64, per_page: i64) -> Vec<TableRow> {
+pub async fn list_for_table(
+ conn: &Connection,
+ page: i64,
+ per_page: i64,
+) -> Vec<TableRow> {
let query = r#"
SELECT
balancing.id,