aboutsummaryrefslogtreecommitdiff
path: root/src/controller/statistics.rs
diff options
context:
space:
mode:
authorJoris2023-11-25 08:59:39 +0100
committerJoris2023-11-25 08:59:39 +0100
commitbb906d8ecc796f6b71dda1851d6bd0aa91c6bce5 (patch)
treecf98c0d9466e0338992c94060d09ac90862178c5 /src/controller/statistics.rs
parent936871e6ba92a23b1956b30272af8c96951c7c2d (diff)
downloadbudget-bb906d8ecc796f6b71dda1851d6bd0aa91c6bce5.tar.gz
budget-bb906d8ecc796f6b71dda1851d6bd0aa91c6bce5.tar.bz2
budget-bb906d8ecc796f6b71dda1851d6bd0aa91c6bce5.zip
Upgrade dependenciesmain
Diffstat (limited to 'src/controller/statistics.rs')
-rw-r--r--src/controller/statistics.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controller/statistics.rs b/src/controller/statistics.rs
index 38a5787..eb1e704 100644
--- a/src/controller/statistics.rs
+++ b/src/controller/statistics.rs
@@ -1,4 +1,6 @@
-use hyper::{Body, Response};
+use http_body_util::Full;
+use hyper::body::Bytes;
+use hyper::Response;
use tera::Context;
use crate::controller::utils;
@@ -6,7 +8,7 @@ use crate::controller::wallet::Wallet;
use crate::db;
use crate::templates;
-pub async fn get(wallet: &Wallet) -> Response<Body> {
+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;