weather: deal with VRB returned for degrees

master
mutantmonkey 2012-11-05 10:41:51 -05:00
parent 4b199e9629
commit 900ac0c5c9
1 changed files with 20 additions and 19 deletions

View File

@ -221,9 +221,10 @@ def f_weather(self, origin, match, args):
description = 'Violent storm'
else: description = 'Hurricane'
if wind[0:3] == 'VRB':
degrees = '\u21BB'
else:
degrees = float(wind[0:3])
#if degrees == 'VRB':
# degrees = '\u21BB'
if (degrees <= 22.5) or (degrees > 337.5):
degrees = '\u2191'
elif (degrees > 22.5) and (degrees <= 67.5):