ungana

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README

commit 82b8b9b131715f5b3307a21cf7751f6e25cba1e5
parent 65417219f11a2f805dd64eeb6367e6e21ddfc79d
Author: Carlosokumu <carlosokumu254@gmail.com>
Date:   Mon,  8 Sep 2025 09:30:43 +0300

update check_existing_event to tick to  standard iCalendar property names

Diffstat:
Mungana/ical/ical_helper.py | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ungana/ical/ical_helper.py b/ungana/ical/ical_helper.py @@ -107,10 +107,11 @@ class ICalHelper: tzid = event_data.get("tzid") candidate_key = ( - ICalHelper.normalize_ical_field(event_data.get("start"), tzid), - ICalHelper.normalize_ical_field(event_data.get("end"), tzid), - ICalHelper.normalize_ical_field(event_data.get("summary")), + ICalHelper.normalize_ical_field(event_data.get("DTSTART"), tzid), + ICalHelper.normalize_ical_field(event_data.get("DTEND"), tzid), + ICalHelper.normalize_ical_field(event_data.get("SUMMARY")), ) + for component in cal.walk("VEVENT"): existing_key = ( ICalHelper.normalize_ical_field(component.get("DTSTART"), tzid), @@ -122,3 +123,4 @@ class ICalHelper: return False +