diff options
author | Joris | 2022-04-24 16:31:49 +0200 |
---|---|---|
committer | Joris | 2022-04-24 16:31:49 +0200 |
commit | 47fe90ee23d8ab04645ef3c7a17459ed40c5b765 (patch) | |
tree | d1aa7d3840a3bd825dcae0a0398fec7ca310f45c /src/cli | |
parent | 6d271b09303d924381cc65e7c0b5eb56833780ed (diff) |
Allow to attach categories to events
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 81c5895..6ce50af 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -6,8 +6,8 @@ use crate::{db, model::event}; pub fn today(conn: &Connection) -> Result<String> { let today = Local::today().naive_local(); - let mut events = db::list_non_recurring_between(conn, today, today)?; - let recurring_events = db::list_recurring(conn)?; + let mut events = db::events::list_non_recurring_between(conn, today, today)?; + let recurring_events = db::events::list_recurring(conn)?; let repetitions = event::repetitions_between(&recurring_events, today, today); for repetition in repetitions.values().flatten() { events.push(repetition.clone()); |