setting total_prio to 0 when task is done
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -240,6 +240,7 @@ public class Task implements Mappable {
|
||||
}
|
||||
|
||||
private int totalPrio() {
|
||||
if (status >= Status.COMPLETE.code()) return 0; // task is done, do no longer highlight
|
||||
if (dueDate == null) return priority;
|
||||
var diff = (int) (dueDate.toEpochDay()-LocalDate.now().toEpochDay());
|
||||
if (diff <= 0) return priority + 100; // due date has passed
|
||||
|
||||
Reference in New Issue
Block a user