weather: deal with VRB returned for degrees
parent
4b199e9629
commit
900ac0c5c9
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue