Skip to content

Commit

Permalink
fix: correct typo (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
dodumosu authored Nov 17, 2024
1 parent 04c146f commit 8fa029d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apollo/result_analysis/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def voting_results(form_id, location_id=None):
if form.registered_voters_tag:
try:
_null_value = form.get_field_by_tag(form.registered_voters_tag).get("null_value")
if null_value is not None:
if _null_value is not None:
null_value = int(_null_value)
dataset[registered_voters_field] = dataset[registered_voters_field].replace(null_value, np.nan)
except (TypeError, ValueError):
Expand Down

0 comments on commit 8fa029d

Please sign in to comment.