clean w/ clippy
All checks were successful
CI/CD Pipeline / test (push) Successful in 12m52s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
2024-04-15 23:26:52 +02:00
parent 151e1b7864
commit 2694829b6e
7 changed files with 13 additions and 16 deletions

View File

@ -27,10 +27,8 @@ 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() {
if boat.boat.name != "Externes Boot" {
final_boats.push(boat);
}
if boat.boat.boathouse(db).await.is_none() && boat.boat.name != "Externes Boot" {
final_boats.push(boat);
}
}