aboutsummaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorJoris2022-03-12 13:27:29 +0100
committerJoris2022-03-12 13:36:09 +0100
commitd584df359640176ec4bc06f59d1e8d42ab17a413 (patch)
tree6cfaf676fc2ecf4e61067aa376fb2bed0d984d79 /src/cli
parentaad7b9601dfa05255d5c24f4a6377d9a25646d45 (diff)
Update and delete recurring events
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/mod.rs6
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());
}