From ca617e497abc178102f5d7b24a54519fd943e601 Mon Sep 17 00:00:00 2001 From: ssup2 Date: Fri, 1 Dec 2023 00:02:14 +0900 Subject: [PATCH] Process no wind direction --- ingestor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ingestor.py b/ingestor.py index c86c06d..3ec3fe6 100644 --- a/ingestor.py +++ b/ingestor.py @@ -167,6 +167,8 @@ def convert_string_float(string: str): def convert_wd_code_name(code: str): '''Convert wind direction code to name''' + if str == "": + return "NONE" return wind_direction_code_name[int(code)] ## Main