diff options
author | jvech <jmvalenciae@unal.edu.co> | 2024-08-13 21:53:20 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2024-08-13 21:53:20 -0500 |
commit | c9b99b6f3e52f818f80851247b3a55403329dfad (patch) | |
tree | 210d110f0e518546160ca9a96f1029abffeeb0f4 /src/main.rs | |
parent | b0a48708ff1f414d27d41a801d675be36485c7b0 (diff) |
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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!() |