don't show boats which are still on the water
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:
philipp 2024-04-06 17:54:07 +02:00
parent 39ba7d53dd
commit c094097af7

View File

@ -52,6 +52,10 @@ impl BoatStat {
let name: String = row.get("name");
let location: String = row.get("location");
let year: i32 = row.get("year");
if year == 0 {
continue; // Boat still on water
}
if !years.contains(&year) {
years.push(year);
}