diff --git a/main.py b/main.py index ac7fc42..ad465aa 100644 --- a/main.py +++ b/main.py @@ -42,7 +42,6 @@ def format_datetime(dt): return f"{format_date(dt)} {format_time(dt)}" - def pollen_desc(index): if index < 2.5: return f"{index} l" @@ -106,7 +105,10 @@ async def fetch_pollen(zipcode): datetime.fromisoformat(data["ForecastDate"]) ), "periods": [ - {"index": pollen_desc(d["Index"]), "period": relative_day_to_date(d["Type"])} + { + "index": pollen_desc(d["Index"]), + "period": relative_day_to_date(d["Type"]), + } for d in data["Location"]["periods"] ], }