diff options
author | Joris | 2022-03-12 13:27:29 +0100 |
---|---|---|
committer | Joris | 2022-03-12 13:36:09 +0100 |
commit | d584df359640176ec4bc06f59d1e8d42ab17a413 (patch) | |
tree | 6cfaf676fc2ecf4e61067aa376fb2bed0d984d79 /src/cli | |
parent | aad7b9601dfa05255d5c24f4a6377d9a25646d45 (diff) |
Update and delete recurring events
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<String> { 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()); } |