Skip to content

Commit

Permalink
Process no wind direction
Browse files Browse the repository at this point in the history
  • Loading branch information
ssup2 committed Dec 2, 2023
1 parent ca617e4 commit 3b7d468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def convert_string_float(string: str):

def convert_wd_code_name(code: str):
'''Convert wind direction code to name'''
if str == "":
if code == "":
return "NONE"
return wind_direction_code_name[int(code)]

Expand Down

0 comments on commit 3b7d468

Please sign in to comment.