Skip to content

Commit

Permalink
Merge pull request #876 from mapswipe/fix/fallback-custom-value
Browse files Browse the repository at this point in the history
Fix/fallback custom value
  • Loading branch information
tnagorra committed Jul 3, 2023
2 parents 2bc325d + 183188f commit 767ce26
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def get_project_static_info(filename: str) -> pd.DataFrame:
,created
-- Custom options values
,CASE
WHEN project_type_specifics->'customOptions' IS NOT NULL
WHEN (
project_type_specifics->'customOptions' IS NOT NULL AND
(project_type_specifics->'customOptions')::TEXT != 'null'::TEXT
)
THEN -- thus if we have answer labels use them
(project_type_specifics->'customOptions')::TEXT
ELSE -- otherwise use below label range as the mapswipe app default
Expand Down

0 comments on commit 767ce26

Please sign in to comment.