no special treatment for 'externes boot'

This commit is contained in:
2024-04-24 17:15:53 +02:00
parent 8b42bdce0c
commit 87307378c6
5 changed files with 8 additions and 8 deletions

View File

@ -27,7 +27,7 @@ async fn index(
let boats = Boat::all_for_boatshouse(db).await;
let mut final_boats = Vec::new();
for boat in boats {
if boat.boat.boathouse(db).await.is_none() && boat.boat.name != "Externes Boot" {
if boat.boat.boathouse(db).await.is_none() && !boat.boat.external {
final_boats.push(boat);
}
}