last corrected

This commit is contained in:
whaffman 2025-04-16 17:35:16 +02:00
parent 7190eca364
commit 00c793be4e

View File

@ -34,8 +34,8 @@ for entry in response2.json():
event = entry event = entry
ical_event.add('uid', event['id']) ical_event.add('uid', event['id'])
ical_event.add('dtstamp', datetime.now()) ical_event.add('dtstamp', datetime.now())
ical_event.add('summary', event['corrector']['login'] + "->" + event['correcteds'][0]['login'] ) ical_event.add('summary', event['corrector']['login'] + "->" + event['correcteds'][-1]['login'] )
ical_event.add('description', event['corrector']['login'] + " will evaluate " + event['correcteds'][0]['login']) ical_event.add('description', event['corrector']['login'] + " will evaluate " + event['correcteds'][-1]['login'])
ical_event.add('dtstart', utc_to_time(datetime.fromisoformat(event['begin_at'].split('.')[0]), "Europe/Amsterdam")) ical_event.add('dtstart', utc_to_time(datetime.fromisoformat(event['begin_at'].split('.')[0]), "Europe/Amsterdam"))
ical_event.add('dtend', utc_to_time(datetime.fromisoformat(event['begin_at'].split('.')[0]) + timedelta(minutes=30), "Europe/Amsterdam")) ical_event.add('dtend', utc_to_time(datetime.fromisoformat(event['begin_at'].split('.')[0]) + timedelta(minutes=30), "Europe/Amsterdam"))
ical_event.add('location', "Codam Campus") ical_event.add('location', "Codam Campus")