Skip to content
Snippets Groups Projects
Commit 0f16db48 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #25 - HourlyForecastTile: round rain probability to power of ten

parent cd1d83b5
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class HourlyForecastTile(Tile):
temperature = entry['temp']
icon = entry['weather'][0]['id']
rainProbability = entry['pop'] * 100
rainProbability = round(entry['pop'] * 100, -1) # -1 rounds to the next ten
windSpeed = entry['wind_speed'] * 3.6
hourData.append({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment