From 00c793be4e132e58fbd781c067c36ec16f18b483 Mon Sep 17 00:00:00 2001 From: whaffman Date: Wed, 16 Apr 2025 17:35:16 +0200 Subject: [PATCH] last corrected --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 1ce3c89..cae7c36 100755 --- a/main.py +++ b/main.py @@ -34,8 +34,8 @@ for entry in response2.json(): event = entry ical_event.add('uid', event['id']) ical_event.add('dtstamp', datetime.now()) - ical_event.add('summary', event['corrector']['login'] + "->" + event['correcteds'][0]['login'] ) - ical_event.add('description', event['corrector']['login'] + " will evaluate " + 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'][-1]['login']) 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('location', "Codam Campus")