Skip to content

Commit 21de263

Browse files
committed
Tweak weather forecast
1 parent 6bf0d42 commit 21de263

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

weather/openweathermap_org_weather.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def __load_forecast_data_one_call(self):
150150
for period in day_periods:
151151
time = day_stamp + timedelta(seconds=day_periods[period])
152152

153+
if time.isoformat() in return_data:
154+
continue
155+
153156
return_data[time.isoformat()] = {
154157
"timestamp": time,
155158
"temperature": float(daily["temp"][period]),

0 commit comments

Comments
 (0)