diff options
| author | Joris Guyonvarch | 2026-04-18 11:29:38 +0200 |
|---|---|---|
| committer | Joris Guyonvarch | 2026-04-18 11:29:38 +0200 |
| commit | 26a02489721cbf81a3e8c09c095aee5ff5786275 (patch) | |
| tree | 49b35339b3e5b2b2b94296a3e7cc8ea75a8c0b29 /src/db | |
| parent | 94520e13a7f1bf45e94b4f28ea37f3703763baf7 (diff) | |
Format sourcesmain
Diffstat (limited to 'src/db')
| -rw-r--r-- | src/db/balancing.rs | 8 |
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, |
