From 1d9389e41bf7669ab411eb97c0e884e43209ce60 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 2 Oct 2023 14:53:40 +0200 Subject: [PATCH] Append the course category to the summary --- src/ics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ics.rs b/src/ics.rs index 22e8f39..c1cdb9f 100644 --- a/src/ics.rs +++ b/src/ics.rs @@ -53,11 +53,11 @@ pub fn export(courses: Vec, filename: &mut Str event.push(Location::new(course.room)); // Course's name - let mut course_name = Summary::new(course.name); + let mut course_name = Summary::new(format!("{} - {}", course.category, course.name)); course_name.append(parameters!("LANGUAGE" => "fr")); event.push(course_name); - // Course's type + // Course's category event.push(Categories::new(course.category.to_string())); // Add the course to the calendar