ungana

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

commit 9b1614a88e22ab5ac7844103e20b38b0079b2710
parent f3dc2783f0327776a62468987b2d76cce5b94205
Author: Carlosokumu <carlosokumu254@gmail.com>
Date:   Mon, 25 Aug 2025 14:26:13 +0300

extend IcalManager:
- update update_event to pop existing components when doing an edit

Diffstat:
Mcalendarapp/ical/ical_manager.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/calendarapp/ical/ical_manager.py b/calendarapp/ical/ical_manager.py @@ -53,6 +53,9 @@ class ICalManager: if component.name == "VEVENT" and str(component.get("UID")) == uid: event_found = True for key, value in updates.items(): + if key in component: + component.pop(key) + if isinstance(value, tuple) and len(value) == 2: v, params = value component.add(key, v, parameters=params)