Supression des doubles #fait
This commit is contained in:
@@ -169,7 +169,9 @@ class cls_caldav_client():
|
|||||||
# print(event.vobject_instance.vevent.eventId)
|
# print(event.vobject_instance.vevent.eventId)
|
||||||
def mark_as_done_task(self,calandar,uuid):
|
def mark_as_done_task(self,calandar,uuid):
|
||||||
event = self.get_event_by_uuid(calandar=calandar,uuid=uuid)
|
event = self.get_event_by_uuid(calandar=calandar,uuid=uuid)
|
||||||
event.vobject_instance.vevent.description.value = event.vobject_instance.vevent.description.value + " #Fait"
|
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()
|
event.save()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user