From 0adf5a093494bdb7f5d5c0f12913133e333ddfad Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 31 Jan 2025 22:28:53 +0100 Subject: Migrate to tokio_rusqlite --- src/controller/statistics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/controller/statistics.rs') 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> { - 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, -- cgit v1.2.3