diff options
Diffstat (limited to 'src/db/balancing.rs')
| -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, |
