Supression des doubles #fait

This commit is contained in:
Ambulance Clerc
2022-11-26 12:55:32 +01:00
parent 57ca73f0e8
commit 9364e08354

View File

@@ -169,7 +169,9 @@ class cls_caldav_client():
# print(event.vobject_instance.vevent.eventId)
def mark_as_done_task(self,calandar,uuid):
event = self.get_event_by_uuid(calandar=calandar,uuid=uuid)
if "#Fait" not in event.vobject_instance.vevent.description.value:
event.vobject_instance.vevent.description.value = event.vobject_instance.vevent.description.value + " #Fait"
event.save()