From 0d53be51a2904333ad94690fad7edc08d2fc6ac0 Mon Sep 17 00:00:00 2001 From: Matteo Settenvini Date: Fri, 29 Jul 2022 02:19:47 +0200 Subject: [PATCH] Make events repeat yearly for now --- src/commands/schedule_csv.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/schedule_csv.rs b/src/commands/schedule_csv.rs index c37a89b..50615d3 100644 --- a/src/commands/schedule_csv.rs +++ b/src/commands/schedule_csv.rs @@ -87,6 +87,9 @@ fn to_event(date: NaiveDate, meal: Meal, recipe: &recipe::Recipe) -> (String, Ev &Local.from_local_datetime(&end_time).unwrap(), ))); + // TODO make configurable yearly repetition, for now this suits my personal uses + event.push(calprop::RRule::new("FREQ=YEARLY")); + let alarm = ics::Alarm::display( calprop::Trigger::new("-P15M"), calprop::Description::new(&recipe.name),