ruff format

This commit is contained in:
Matthew Ryan Dillon 2025-05-26 20:14:21 -04:00
parent cfd49318cd
commit b35bbe2d1c

View file

@ -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"]
],
}