forked from janek/mostr
fix(tasks): no decimal point for progress percentage
This commit is contained in:
parent
5c7793f4a3
commit
03263840ac
|
@ -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())),
|
||||||
|
|
Loading…
Reference in New Issue