feat: add comment to export of availabilities

resolves #23
This commit is contained in:
Max Hohlfeld 2025-04-24 20:02:46 +02:00
parent 8849d46fd3
commit 56f6b8edb4

View File

@ -39,6 +39,7 @@ struct ExportAvailabillity {
start_time: NaiveTime, start_time: NaiveTime,
end_time: NaiveTime, end_time: NaiveTime,
assigned: bool, assigned: bool,
comment: String
} }
#[actix_web::get("/export/availabilitydata")] #[actix_web::get("/export/availabilitydata")]
@ -86,6 +87,7 @@ pub async fn get(
start_time, start_time,
end_time, end_time,
assigned: false, assigned: false,
comment: a.comment.unwrap_or(String::new())
} }
}) })
.collect(); .collect();