don't show boats which are still on the water
This commit is contained in:
parent
39ba7d53dd
commit
c094097af7
@ -52,6 +52,10 @@ impl BoatStat {
|
|||||||
let name: String = row.get("name");
|
let name: String = row.get("name");
|
||||||
let location: String = row.get("location");
|
let location: String = row.get("location");
|
||||||
let year: i32 = row.get("year");
|
let year: i32 = row.get("year");
|
||||||
|
if year == 0 {
|
||||||
|
continue; // Boat still on water
|
||||||
|
}
|
||||||
|
|
||||||
if !years.contains(&year) {
|
if !years.contains(&year) {
|
||||||
years.push(year);
|
years.push(year);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user