Bug fix to handle CSV import
This commit is contained in:
parent
8b51c15ce1
commit
510e9da267
@ -101,8 +101,12 @@ def manyPlanes(arguments):
|
|||||||
row['latitude'] = float(row['latitude'])
|
row['latitude'] = float(row['latitude'])
|
||||||
if not 'longitude' in row.keys():
|
if not 'longitude' in row.keys():
|
||||||
row['longitude'] = arguments.longitude
|
row['longitude'] = arguments.longitude
|
||||||
|
else:
|
||||||
|
row['longitude'] = float(row['longitude'])
|
||||||
if not 'altitude' in row.keys():
|
if not 'altitude' in row.keys():
|
||||||
row['altitude'] = arguments.altitude
|
row['altitude'] = arguments.altitude
|
||||||
|
else:
|
||||||
|
row['altitude'] = float(row['altitude'])
|
||||||
if not 'capability' in row.keys():
|
if not 'capability' in row.keys():
|
||||||
row['capability'] = arguments.capability
|
row['capability'] = arguments.capability
|
||||||
if not 'typecode' in row.keys():
|
if not 'typecode' in row.keys():
|
||||||
|
Loading…
Reference in New Issue
Block a user