This commit is contained in:
Mylloon 2022-08-16 14:40:55 +02:00
parent c62bcab28f
commit d736f532a3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -8,7 +8,10 @@ pub fn export(courses: Vec<crate::timetable::models::Course>, filename: &str) {
// Create events which contains the information regarding the course // Create events which contains the information regarding the course
for course in courses { for course in courses {
let mut event = Event::new(uuid::Uuid::new_v4().to_string(), dt_ical(chrono::Utc::now())); let mut event = Event::new(
uuid::Uuid::new_v4().to_string(),
dt_ical(chrono::Utc::now()),
);
// Public event // Public event
event.push(Class::public()); event.push(Class::public());