Skip to content

Commit e98c032

Browse files
committed
feat(aggregates): update aggregates for validate image project
- using time_spent_max_allowed value of 6.1 - exluding area calculation
1 parent 819af11 commit e98c032

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

django/apps/aggregated/management/commands/update_aggregated_data.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
WHEN P.project_type = {Project.Type.CHANGE_DETECTION.value} THEN 11.2
5656
-- FOOTPRINT: Not calculated right now
5757
WHEN P.project_type = {Project.Type.FOOTPRINT.value} THEN 6.1
58+
WHEN P.project_type = {Project.Type.VALIDATE_IMAGE.value} THEN 6.1
5859
WHEN P.project_type = {Project.Type.STREET.value} THEN 65
5960
ELSE 1
6061
END
@@ -111,6 +112,7 @@
111112
WHEN P.project_type = {Project.Type.CHANGE_DETECTION.value} THEN 11.2
112113
-- FOOTPRINT: Not calculated right now
113114
WHEN P.project_type = {Project.Type.FOOTPRINT.value} THEN 6.1
115+
WHEN P.project_type = {Project.Type.VALIDATE_IMAGE.value} THEN 6.1
114116
WHEN P.project_type = {Project.Type.STREET.value} THEN 65
115117
ELSE 1
116118
END
@@ -136,8 +138,10 @@
136138
G.group_id,
137139
(
138140
CASE
139-
-- Hide area for Footprint
141+
-- Hide area for Footprint and Validate Image
142+
-- FIXME: What should we do for Project.Type.STREET.value
140143
WHEN P.project_type = {Project.Type.FOOTPRINT.value} THEN 0
144+
WHEN P.project_type = {Project.Type.VALIDATE_IMAGE.value} THEN 0
141145
ELSE G.total_area
142146
END
143147
) as total_task_group_area,

0 commit comments

Comments
 (0)