give proper results for stats
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user