forked from Anri/cal8tor
Append the course category to the summary
This commit is contained in:
parent
be6670b02f
commit
1d9389e41b
1 changed files with 2 additions and 2 deletions
|
@ -53,11 +53,11 @@ pub fn export(courses: Vec<crate::timetable::models::Course>, 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
|
||||
|
|
Loading…
Reference in a new issue