enhance(tasks): current task description
This commit is contained in:
parent
88ecd68eb8
commit
9eb6138852
1 changed files with 3 additions and 2 deletions
|
@ -1285,13 +1285,14 @@ impl Display for TasksRelay {
|
||||||
}
|
}
|
||||||
writeln!(
|
writeln!(
|
||||||
lock,
|
lock,
|
||||||
"Active from {} (total tracked time {}m) - {} since {}",
|
"Active from {} (total tracked time {}m) - State {} since {}",
|
||||||
tracking_stamp.map_or("?".to_string(), |t| format_timestamp_relative(&t)),
|
tracking_stamp.map_or("?".to_string(), |t| format_timestamp_relative(&t)),
|
||||||
self.time_tracked(*t.get_id()) / 60,
|
self.time_tracked(*t.get_id()) / 60,
|
||||||
state.get_label(),
|
state.get_label(),
|
||||||
format_timestamp_relative(&state.time)
|
format_timestamp_relative(&state.time)
|
||||||
)?;
|
)?;
|
||||||
writeln!(lock, "{}", t.descriptions().join("\n"))?;
|
for d in t.descriptions() { writeln!(lock, "{}", d)?; }
|
||||||
|
writeln!(lock)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let position = self.get_position();
|
let position = self.get_position();
|
||||||
|
|
Loading…
Add table
Reference in a new issue