staging #338

Merged
philipp merged 2 commits from staging into main 2024-04-03 18:08:01 +02:00
3 changed files with 5 additions and 1 deletions
Showing only changes of commit d0c2b4d703 - Show all commits

1
Cargo.lock generated
View File

@ -2204,6 +2204,7 @@ dependencies = [
"env_logger",
"futures",
"ics",
"itertools",
"lettre",
"log",
"openssl",

View File

@ -24,6 +24,7 @@ ics = "0.5"
futures = "0.3"
lettre = "0.11"
csv = "1.3"
itertools = "0.12"
[target.'cfg(not(windows))'.dependencies]
openssl = { version = "0.10", features = [ "vendored" ] }

View File

@ -1,5 +1,6 @@
use std::ops::DerefMut;
use itertools::Itertools;
use rocket::serde::{Deserialize, Serialize};
use rocket::FromForm;
use sqlx::{FromRow, Sqlite, SqlitePool, Transaction};
@ -7,7 +8,7 @@ use sqlx::{FromRow, Sqlite, SqlitePool, Transaction};
use super::location::Location;
use super::user::User;
#[derive(FromRow, Debug, Serialize, Deserialize)]
#[derive(FromRow, Debug, Serialize, Deserialize, Eq, Hash, PartialEq, Clone)]
pub struct Boat {
pub id: i64,
pub name: String,
@ -279,6 +280,7 @@ ORDER BY amount_seats DESC
.unwrap(); //TODO: fixme
boats.extend(boats_in_ottensheim.into_iter());
}
let boats = boats.into_iter().unique().collect();
Self::boats_to_details(db, boats).await
}