clean up clean up

This commit is contained in:
Jason Ji 2017-09-24 12:06:45 -07:00
parent d8c3dd00e2
commit ad3ebc5a7c

View File

@ -24,6 +24,8 @@ def get_weather(message):
get_weather(location)
Returns the weather forecast for the selected location. Uses PythonOWM.
TODO: Create a list of weather preferences - rain > sun, snow > rain, etc.
"""
try:
forecaster = openweathermap.three_hours_forecast(message)
@ -53,7 +55,7 @@ def get_weather(message):
temps = day.get_temperature('fahrenheit')
h = temps.get('temp_max')
l = temps.get('temp_min')
print(forecast.get(i + j).get_detailed_status())
# print(forecast.get(i + j).get_detailed_status())
if high < h:
high = h
if low > l: