fix a VRB-bug
This commit is contained in:
@@ -57,7 +57,10 @@ class DwdCrawler():
|
||||
altitude = int(altitude.replace('FL', '')) * 100
|
||||
else:
|
||||
altitude = int(altitude.replace('FT', ''))
|
||||
row = ( altitude, int(windData[0]), int(windData[1].replace('KT', '')) )
|
||||
if 'VRB' == windData[0]:
|
||||
row = ( altitude, 0, int(windData[1].replace('KT', '')) )
|
||||
else:
|
||||
row = ( altitude, int(windData[0]), int(windData[1].replace('KT', '')) )
|
||||
table.append(row)
|
||||
|
||||
return table
|
||||
|
||||
Reference in New Issue
Block a user