Bug fix to handle CSV import

This commit is contained in:
nzkarit 2018-05-06 11:46:45 +12:00
parent 8b51c15ce1
commit 510e9da267

View File

@ -101,8 +101,12 @@ def manyPlanes(arguments):
row['latitude'] = float(row['latitude'])
if not 'longitude' in row.keys():
row['longitude'] = arguments.longitude
else:
row['longitude'] = float(row['longitude'])
if not 'altitude' in row.keys():
row['altitude'] = arguments.altitude
else:
row['altitude'] = float(row['altitude'])
if not 'capability' in row.keys():
row['capability'] = arguments.capability
if not 'typecode' in row.keys():