show type of boat
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
2024-09-11 19:10:02 +02:00
parent 1da9412904
commit 14bfb695d9
4 changed files with 17 additions and 8 deletions

View File

@ -16,6 +16,7 @@ pub struct BoatStat {
#[derive(Serialize, Clone)]
pub struct SingleBoatStat {
name: String,
cat: String,
location: String,
owner: String,
years: HashMap<String, i32>,
@ -71,6 +72,7 @@ ORDER BY
}
let year: String = format!("{year}");
let cat = boat.cat();
let rowed_km: i32 = row.get("rowed_km");
@ -80,6 +82,7 @@ ORDER BY
name,
location,
owner,
cat,
years: HashMap::new(),
});
boat_stat.years.insert(year, rowed_km);