Skip to content

Commit

Permalink
Merge pull request #1371 from bcgov/bugfix/ALCS-1551
Browse files Browse the repository at this point in the history
removing our friend None entirely
  • Loading branch information
lstod authored Feb 1, 2024
2 parents 6e0b1af + d0fa919 commit 39d767f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def _get_name(row):
first_name = row.get("first_name", "")
middle_name = row.get("middle_name", "")
name = f"{first_name} {middle_name}".strip()
if row.get("organization_name") and name == "None":
# If someone legitimately has the first name of "None" it will be converted
if name == "None":
return None
return name

Expand Down

0 comments on commit 39d767f

Please sign in to comment.