Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
Likely more accurate precipitation detection
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMitchL committed Oct 22, 2016
1 parent e61e0bb commit 9448ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Expand Up @@ -125,7 +125,7 @@ def precipitation_in_hour(self):
:return: boolean
"""
# if this is found to not be very accurate, using precipProbability would be an alternative
return True if self.__forecast.hourly().data[0].icon in ['rain', 'snow', 'sleet'] else False
return True if self.__forecast.minutely().icon in ['rain', 'snow', 'sleet'] else False


class WeatherBotString:
Expand Down

0 comments on commit 9448ebd

Please sign in to comment.