fix a VRB-bug
This commit is contained in:
		| @@ -57,7 +57,10 @@ class DwdCrawler(): | |||||||
|             altitude = int(altitude.replace('FL', '')) * 100 |             altitude = int(altitude.replace('FL', '')) * 100 | ||||||
|         else: |         else: | ||||||
|             altitude = int(altitude.replace('FT', '')) |             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) |         table.append(row) | ||||||
|  |  | ||||||
|         return table |         return table | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user