From 56f6b8edb409f8b7093433ba9f3f32daa96b139d Mon Sep 17 00:00:00 2001 From: Max Hohlfeld Date: Thu, 24 Apr 2025 20:02:46 +0200 Subject: [PATCH] feat: add comment to export of availabilities resolves #23 --- web/src/endpoints/export/get_availability_data.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/endpoints/export/get_availability_data.rs b/web/src/endpoints/export/get_availability_data.rs index fbe02036..88df8499 100644 --- a/web/src/endpoints/export/get_availability_data.rs +++ b/web/src/endpoints/export/get_availability_data.rs @@ -39,6 +39,7 @@ struct ExportAvailabillity { start_time: NaiveTime, end_time: NaiveTime, assigned: bool, + comment: String } #[actix_web::get("/export/availabilitydata")] @@ -86,6 +87,7 @@ pub async fn get( start_time, end_time, assigned: false, + comment: a.comment.unwrap_or(String::new()) } }) .collect();