@@ -75,8 +75,8 @@ def create_school_calendar(
75
75
# Create event and add internal properties
76
76
event = Event ()
77
77
event .add ("DTSTAMP" , datetime .now ())
78
- event .add ("CATEGORIES" , ["NORMAL " ])
79
- event .add ("COLOR" , "green " )
78
+ event .add ("CATEGORIES" , ["Lesson" , "Normal " ])
79
+ event .add ("COLOR" , "darkgreen " )
80
80
event .add (
81
81
"UID" ,
82
82
sha256 (
@@ -93,6 +93,7 @@ def create_school_calendar(
93
93
94
94
# Add basic lesson properties
95
95
event .add ("SUMMARY" , subject ["subject" ])
96
+ event .add ("ATTENDEE" , subject ["class" ])
96
97
event .add ("ORGANIZER" , subject ["teacher" ])
97
98
event .add ("LOCATION" , subject ["classroom" ])
98
99
event .add ("DURATION" , timedelta (minutes = 45 ))
@@ -132,7 +133,7 @@ def create_school_calendar(
132
133
# Create event and add internal properties
133
134
event = Event ()
134
135
event .add ("DTSTAMP" , datetime .now ())
135
- event .add ("CATEGORIES" , ["SUBSTITUTION " ])
136
+ event .add ("CATEGORIES" , ["Lesson" , "Substitution " ])
136
137
event .add ("COLOR" , "darkred" )
137
138
event .add (
138
139
"UID" ,
@@ -154,6 +155,7 @@ def create_school_calendar(
154
155
# Add basic substitution properties
155
156
event .add ("SUMMARY" , subject ["subject" ])
156
157
event .add ("DESCRIPTION" , subject ["notes" ] or "" )
158
+ event .add ("ATTENDEE" , subject ["class" ])
157
159
event .add ("ORGANIZER" , subject ["teacher" ])
158
160
event .add ("LOCATION" , subject ["classroom" ])
159
161
@@ -212,7 +214,7 @@ def create_schedule_calendar(
212
214
# Create event and add internal properties
213
215
event = Event ()
214
216
event .add ("DTSTAMP" , datetime .now ())
215
- event .add ("CATEGORIES" , ["LUNCH " ])
217
+ event .add ("CATEGORIES" , ["Lunch " ])
216
218
event .add ("COLOR" , "darkblue" )
217
219
event .add (
218
220
"UID" ,
@@ -233,6 +235,7 @@ def create_schedule_calendar(
233
235
event .add ("SUMMARY" , "Kosilo" )
234
236
event .add ("DESCRIPTION" , model .notes or "" )
235
237
event .add ("LOCATION" , model .location or "" )
238
+ event .add ("ATTENDEE" , classname )
236
239
event .add ("DTSTART" , start )
237
240
event .add ("DTEND" , end )
238
241
0 commit comments