diff options
author | Joris | 2025-01-31 22:28:53 +0100 |
---|---|---|
committer | Joris | 2025-01-31 22:28:53 +0100 |
commit | 0adf5a093494bdb7f5d5c0f12913133e333ddfad (patch) | |
tree | ada6df0f3480647bec99429819f1bfffd36194ce /src/controller/statistics.rs | |
parent | 24eeb54a6b7159964e8887ade7fa5173b50feb3a (diff) |
Migrate to tokio_rusqlite
Diffstat (limited to 'src/controller/statistics.rs')
-rw-r--r-- | src/controller/statistics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller/statistics.rs b/src/controller/statistics.rs index e57e2be..a546c67 100644 --- a/src/controller/statistics.rs +++ b/src/controller/statistics.rs @@ -8,9 +8,9 @@ use crate::db; use crate::templates; pub async fn get(wallet: &Wallet) -> Response<Full<Bytes>> { - let categories = db::categories::list(&wallet.pool).await; - let payments = db::payments::list_for_stats(&wallet.pool).await; - let incomes = db::incomes::total_each_month(&wallet.pool).await; + let categories = db::categories::list(&wallet.db_conn).await; + let payments = db::payments::list_for_stats(&wallet.db_conn).await; + let incomes = db::incomes::total_each_month(&wallet.db_conn).await; let context = minijinja::context!( header => templates::Header::Statistics, |