unique uid for event
This commit is contained in:
parent
b81c70519b
commit
ac0f0e75e6
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue