dont show external boat

This commit is contained in:
philipp 2024-04-13 09:44:22 +02:00
parent cfc35fbec6
commit 74d3957cf8

View File

@ -28,9 +28,11 @@ async fn index(
let mut final_boats = Vec::new();
for boat in boats {
if boat.boat.boathouse(db).await.is_none() {
if boat.boat.name != "Externes Boot" {
final_boats.push(boat);
}
}
}
context.insert("boats", &final_boats);