Tasks
This commit is contained in:
parent
120029e69c
commit
7dde47a8ca
|
|
@ -85,7 +85,7 @@ List<int> filteredProjectsSelector(
|
||||||
Duration taskDurationForProject(ProjectEntity project, BuiltMap<int, TaskEntity> taskMap,) {
|
Duration taskDurationForProject(ProjectEntity project, BuiltMap<int, TaskEntity> taskMap,) {
|
||||||
int total = 0;
|
int total = 0;
|
||||||
taskMap.forEach((index, task) {
|
taskMap.forEach((index, task) {
|
||||||
if (task.projectId == project.id) {
|
if (task.isActive && task.projectId == project.id) {
|
||||||
total += task.calculateDuration.inSeconds;
|
total += task.calculateDuration.inSeconds;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue