default duration in cal of trips with type Lange Ausfahrt -> 6 hrs (instead of 3); Fixes #939
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled

This commit is contained in:
2025-05-17 10:08:07 +02:00
parent 7730de8ada
commit 63edc3d249
4 changed files with 45 additions and 14 deletions

View File

@ -1,6 +1,6 @@
use std::io::Write;
use ics::{ICalendar, components::Property};
use ics::{components::Property, ICalendar};
use sqlx::SqlitePool;
use crate::model::{event::Event, trip::Trip, user::User};
@ -19,7 +19,7 @@ pub(crate) async fn get_personal_cal(db: &SqlitePool, user: &User) -> String {
let trips = Trip::all_with_user(db, user).await;
for trip in trips {
calendar.add_event(trip.get_vevent(user).await);
calendar.add_event(trip.get_vevent(db, user).await);
}
let mut buf = Vec::new();
write!(&mut buf, "{}", calendar).unwrap();