Skip to content

Commit 767ce26

Browse files
authored
Merge pull request #876 from mapswipe/fix/fallback-custom-value
Fix/fallback custom value
2 parents 2bc325d + 183188f commit 767ce26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mapswipe_workers/mapswipe_workers/generate_stats/overall_stats.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ def get_project_static_info(filename: str) -> pd.DataFrame:
6868
,created
6969
-- Custom options values
7070
,CASE
71-
WHEN project_type_specifics->'customOptions' IS NOT NULL
71+
WHEN (
72+
project_type_specifics->'customOptions' IS NOT NULL AND
73+
(project_type_specifics->'customOptions')::TEXT != 'null'::TEXT
74+
)
7275
THEN -- thus if we have answer labels use them
7376
(project_type_specifics->'customOptions')::TEXT
7477
ELSE -- otherwise use below label range as the mapswipe app default

0 commit comments

Comments
 (0)