diff --git a/src/model/stat.rs b/src/model/stat.rs index bece501..05d7ea2 100644 --- a/src/model/stat.rs +++ b/src/model/stat.rs @@ -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); }