|
@@ -18,6 +18,8 @@ def do_convert(s, fmt):
|
|
return s
|
|
return s
|
|
if fmt == 'f':
|
|
if fmt == 'f':
|
|
return float(s)
|
|
return float(s)
|
|
|
|
+ if fmt == 'n':
|
|
|
|
+ return "null"
|
|
throw("what is this format?")
|
|
throw("what is this format?")
|
|
|
|
|
|
def data_from_row(d):
|
|
def data_from_row(d):
|
|
@@ -32,7 +34,7 @@ def data_from_row(d):
|
|
st = d['\ufeff' + name]
|
|
st = d['\ufeff' + name]
|
|
else:
|
|
else:
|
|
st = ''
|
|
st = ''
|
|
- if st == '':
|
|
|
|
|
|
+ if st == '' and fmt != 'n':
|
|
raise KeyError
|
|
raise KeyError
|
|
d1[field] = do_convert(st, fmt)
|
|
d1[field] = do_convert(st, fmt)
|
|
if d1['lat'] == 0:
|
|
if d1['lat'] == 0:
|