From f551cd71d4fc63807ca3bdb9a5466bc7100682c7 Mon Sep 17 00:00:00 2001 From: eriks Date: Sun, 14 Jan 2024 11:01:08 +0200 Subject: [PATCH] Update service/app.py Signed-off-by: eriks --- service/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/app.py b/service/app.py index 30bdfb9..3099b1c 100644 --- a/service/app.py +++ b/service/app.py @@ -24,7 +24,7 @@ def generate_ical_for_mapping(cal: dict[datetime.date, list[str]]) -> BytesIO: ev.add("DTSTAMP", datetime.datetime(2000, 1, 1)) ev.add("RRULE", {"FREQ": "YEARLY"}) ev.add("CATEGORY", "Anniversary") - ev.add("UID", uuid.uuid4()) + ev.add("UID", uuid.uuid5(uuid.NAMESPACE_OID, date.strftime("%m-%d"))) alert = Alarm() alert.add("action", "DISPLAY") alert.add("TRIGGER", datetime.timedelta(hours=9))