From ac0f0e75e63b6ad69ffdeebff26c48af9c49a986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Sat, 20 Apr 2024 14:55:12 +0200 Subject: [PATCH] unique uid for event --- colloscope/icalexport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colloscope/icalexport.py b/colloscope/icalexport.py index bc7a8b0..2ca1f68 100644 --- a/colloscope/icalexport.py +++ b/colloscope/icalexport.py @@ -45,7 +45,7 @@ def to_calendar(etudiant, periode): event.add("dtstart", start, parameters={"tzid": LOCAL_TZ}) event.add("dtend", fin, parameters={"tzid": LOCAL_TZ}) event.add("dtstamp", datetime.now()) - event.add("uid", str(uuid4())) + event.add("uid", str(rotation.id)) event.add("location", f"{rotation.creneau.salle} ({rotation.creneau.periode.classe.lycee})") event.add("categories", "COLLE-" + str(rotation.creneau.matiere))