From fca9b1492bb05926d58a8d18ab72f751d60b236f Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 7 Aug 2024 15:04:57 +0300 Subject: [PATCH] fix(tasks): recursive time tracked format string --- src/tasks.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tasks.rs b/src/tasks.rs index 070b946..99d0750 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -353,8 +353,9 @@ impl Tasks { .map_or(String::new(), |p| format!("{:2.0}%", p * 100.0)), "path" => self.get_task_path(Some(task.event.id)), "rpath" => self.relative_path(task.event.id), + // TODO format strings as config "time" => display_time("MMMm", self.time_tracked(*task.get_id())), - "rtime" => display_time("HH:MMm", self.total_time_tracked(*task.get_id())), + "rtime" => display_time("HH:MM", self.total_time_tracked(*task.get_id())), prop => task.get(prop).unwrap_or(String::new()), }) .collect::>()