give proper results for stats

This commit is contained in:
2023-10-01 18:14:05 +02:00
parent d838a1ca68
commit 826402cd41
2 changed files with 33 additions and 14 deletions

View File

@ -12,6 +12,7 @@ async fn index(db: &State<SqlitePool>, user: User) -> Template {
let stat = Stat::get_rowed_km(db).await;
let personal = stat::get_personal(db, &user).await;
println!("{personal:?}");
Template::render("stat", context!(loggedin_user: &user, stat, personal))
}