File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
django/apps/aggregated/management/commands Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 77 AggregatedUserStatData ,
88)
99from apps .existing_database .models import MappingSession , Project
10+
1011from django .core .management .base import BaseCommand
1112from django .db import connection , models , transaction
1213from django .utils import timezone
5556 WHEN P.project_type = { Project .Type .CHANGE_DETECTION .value } THEN 11.2
5657 -- FOOTPRINT: Not calculated right now
5758 WHEN P.project_type = { Project .Type .FOOTPRINT .value } THEN 6.1
59+ WHEN P.project_type = { Project .Type .STREET .value } THEN 65
5860 ELSE 1
5961 END
6062 ) * COUNT(*) as time_spent_max_allowed
110112 WHEN P.project_type = { Project .Type .CHANGE_DETECTION .value } THEN 11.2
111113 -- FOOTPRINT: Not calculated right now
112114 WHEN P.project_type = { Project .Type .FOOTPRINT .value } THEN 6.1
115+ WHEN P.project_type = { Project .Type .STREET .value } THEN 65
113116 ELSE 1
114117 END
115118 ) * COUNT(*) as time_spent_max_allowed
You can’t perform that action at this time.
0 commit comments