Skip to content

Commit

Permalink
Merge pull request #1476 from fedspendingtransparency/fix/business-ca…
Browse files Browse the repository at this point in the history
…tegories-none-hotfix

Hotfix: Business Categories, allow Nones in Legal Entity
  • Loading branch information
tony-sappe authored Aug 21, 2018
2 parents e511388 + 2f3fabe commit 4150e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usaspending_api/broker/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def build_legal_entity_booleans_dict(row):
'other_not_for_profit_organ',
'us_local_government'
]
return {le_col: bool(strtobool(row.get(le_col, 'false'))) for le_col in le_cols}
return {le_col: bool(strtobool(row.get(le_col, 'false') or 'false')) for le_col in le_cols}


def get_award_category(award_type_code):
Expand Down

0 comments on commit 4150e32

Please sign in to comment.