From c9b99b6f3e52f818f80851247b3a55403329dfad Mon Sep 17 00:00:00 2001 From: jvech Date: Tue, 13 Aug 2024 21:53:20 -0500 Subject: feat: month filter added --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index c4acc8b..6fda51f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,12 +27,12 @@ fn main() -> Result<()> { register.add_register(&datapath)?; }, - Commands::View {agent, filter_note, history, total} => { + Commands::View {agent, filter_note, history, total, month} => { let datapath = cli.database_path.expect("database path not found"); let conn = Connection::open(&datapath)?; match (history, total) { - (true, false) => Database::view_history(conn, agent, filter_note)?, + (true, false) => Database::view_history(conn, agent, filter_note, month)?, (false, true) => Database::view_total(conn)?, (false, false) => Database::view_total(conn)?, (true, true) => unreachable!() -- cgit v1.2.3-70-g09d2