Skip to content

Commit bb815a8

Browse files
authored
fix: don't round urgency in _urgency command (#4125)
Rounding causes sorting output of _urgency to not match the sorting of any reports.
1 parent 09e24a0 commit bb815a8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/commands/CmdUrgency.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ int CmdUrgency::execute(std::string& output) {
6666
// Display urgency for the selected tasks.
6767
std::stringstream out;
6868
for (auto& task : filtered) {
69-
out << format("task {1} urgency {2}", task.identifier(),
70-
Lexer::trim(format(task.urgency(), 6, 3)))
71-
<< '\n';
69+
out << format("task {1} urgency {2}", task.identifier(), task.urgency()) << '\n';
7270
}
7371

7472
output = out.str();

0 commit comments

Comments
 (0)