This commit is contained in:
2023-09-05 21:03:18 +00:00
parent cbfc6be0e9
commit fe4c0bebfc
13 changed files with 346 additions and 310 deletions

View File

@ -204,6 +204,7 @@ ORDER BY departure DESC
let mut tx = db.begin().await.unwrap();
let departure = NaiveDateTime::parse_from_str(&log.departure, "%Y-%m-%dT%H:%M").unwrap();
println!("@@@@@@ {:?}", log.arrival);
let arrival = log
.arrival
.map(|a| NaiveDateTime::parse_from_str(&a, "%Y-%m-%dT%H:%M").unwrap());

View File

@ -341,8 +341,9 @@ mod test {
let response = req.dispatch().await;
let text = response.into_string().await.unwrap();
println!("{text:?}");
assert!(text.contains("Logbuch"));
assert!(text.contains("Bootsname: Joe"));
assert!(text.contains("Joe"));
}
#[sqlx::test]
@ -361,7 +362,7 @@ mod test {
let text = response.into_string().await.unwrap();
assert!(text.contains("Logbuch"));
assert!(text.contains("Bootsname: Joe"));
assert!(text.contains("Joe"));
}
#[sqlx::test]