From d584df359640176ec4bc06f59d1e8d42ab17a413 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 12 Mar 2022 13:27:29 +0100 Subject: Update and delete recurring events --- src/cli/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cli') diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 862bcbe..88726ca 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -6,9 +6,9 @@ use crate::{db, model::event, model::event::Event}; pub fn today(conn: &Connection) -> Result { let today = Local::today().naive_local(); - let mut events = db::list_non_repeated_between(conn, today, today)?; - let repeated_events = db::list_repeated(conn)?; - let repetitions = event::repetitions_between(&repeated_events, today, today); + let mut events = db::list_non_recurring_between(conn, today, today)?; + let recurring_events = db::list_recurring(conn)?; + let repetitions = event::repetitions_between(&recurring_events, today, today); for repetition in repetitions.values().flatten() { events.push(repetition.clone()); } -- cgit v1.2.3