mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug 707
- urgency.blocked.coefficient logic was inverted.
This commit is contained in:
parent
14b184089d
commit
40b2258589
2 changed files with 4 additions and 2 deletions
|
@ -25,6 +25,8 @@
|
||||||
# Tracked Bugs, sorted by ID.
|
# Tracked Bugs, sorted by ID.
|
||||||
+ Fixed bug #703, where global substitutions didn't make all expected
|
+ Fixed bug #703, where global substitutions didn't make all expected
|
||||||
annotation changes.
|
annotation changes.
|
||||||
|
+ Fixed bug #707, which had inverted logic with the urgency calculation for
|
||||||
|
blocked tasks.
|
||||||
+ Fixed Bug #713, which fixes typos in the holidays-UK.rc file (thanks to
|
+ Fixed Bug #713, which fixes typos in the holidays-UK.rc file (thanks to
|
||||||
Alexei Romanoff).
|
Alexei Romanoff).
|
||||||
+ Fixed Bug #723, which displayed a misleading message when the output was
|
+ Fixed Bug #723, which displayed a misleading message when the output was
|
||||||
|
|
|
@ -928,8 +928,8 @@ double Task::urgency ()
|
||||||
coefficient = context.config.getReal ("urgency.blocked.coefficient");
|
coefficient = context.config.getReal ("urgency.blocked.coefficient");
|
||||||
|
|
||||||
value = get ("depends");
|
value = get ("depends");
|
||||||
if (value != "") term = 0.0;
|
if (value != "") term = 1.0;
|
||||||
else term = 1.0;
|
else term = 0.0;
|
||||||
|
|
||||||
urgency += term * coefficient;
|
urgency += term * coefficient;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue