fix(tasks): no decimal point for progress percentage

This commit is contained in:
xeruf 2024-07-31 20:06:16 +03:00
parent 5c7793f4a3
commit 03263840ac
1 changed files with 2 additions and 2 deletions

View File

@ -335,8 +335,8 @@ impl Tasks {
} }
} }
"progress" => self "progress" => self
.total_progress(&task.event.id) .total_progress(task.get_id())
.map_or(String::new(), |p| format!("{:2}%", p * 100.0)), .map_or(String::new(), |p| format!("{:2.0}%", p * 100.0)),
"path" => self.get_task_path(Some(task.event.id)), "path" => self.get_task_path(Some(task.event.id)),
"rpath" => self.relative_path(task.event.id), "rpath" => self.relative_path(task.event.id),
"time" => display_time("MMMm", self.time_tracked(task.get_id())), "time" => display_time("MMMm", self.time_tracked(task.get_id())),