From 9448ebddf126f56f339788ff8ab2619eef9bafb7 Mon Sep 17 00:00:00 2001 From: Brian Mitchell Date: Sat, 22 Oct 2016 03:27:40 -0500 Subject: [PATCH] Likely more accurate precipitation detection --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 56b730c..13b15bc 100644 --- a/models.py +++ b/models.py @@ -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: