File tree 2 files changed +9
-7
lines changed
django/apps/aggregated/management/commands
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 75
75
76
76
TASK_GROUP_METADATA_QUERY = f"""
77
77
SELECT
78
- P .project_id,
78
+ G .project_id,
79
79
G.group_id,
80
- CASE
81
- -- Hide area for Footprint
82
- WHEN P.project_type = { Project .Type .FOOTPRINT .value } THEN 0
83
- ELSE G.total_area
80
+ (
81
+ CASE
82
+ -- Hide area for Footprint
83
+ WHEN P.project_type = { Project .Type .FOOTPRINT .value } THEN 0
84
+ ELSE G.total_area
85
+ END
84
86
) as total_task_group_area,
85
87
G.time_spent_max_allowed
86
88
FROM groups G
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ x-django: &base_django
30
30
DJANGO_DB_NAME : ' ${POSTGRES_DB}'
31
31
DJANGO_DB_USER : ' ${POSTGRES_USER}'
32
32
DJANGO_DB_PWD : ' ${POSTGRES_PASSWORD}'
33
- DJANGO_DB_HOST : ' postgres'
33
+ DJANGO_DB_HOST : ' ${POSTGRES_HOST:- postgres} '
34
34
DJANGO_DB_PORT : 5432
35
35
DJANGO_STATIC_ROOT : ' /assets/static/'
36
36
DJANGO_MEDIA_ROOT : ' /assets/media/'
@@ -62,7 +62,7 @@ x-mapswipe-workers: &base_mapswipe_workers
62
62
POSTGRES_PASSWORD : ' ${POSTGRES_PASSWORD}'
63
63
POSTGRES_USER : ' ${POSTGRES_USER}'
64
64
POSTGRES_DB : ' ${POSTGRES_DB}'
65
- POSTGRES_HOST : ' postgres'
65
+ POSTGRES_HOST : ' ${POSTGRES_HOST:- postgres} '
66
66
POSTGRES_PORT : 5432
67
67
PGDATA : ' /var/lib/postgresql/mapswipe'
68
68
IMAGE_BING_API_KEY : ' ${IMAGE_BING_API_KEY}'
You can’t perform that action at this time.
0 commit comments