bugfix
This commit is contained in:
parent
78677f9fb2
commit
f0eebd7c8a
@ -34,6 +34,9 @@ def xls2ddl(xlsfile,dbtype):
|
|||||||
if data is None:
|
if data is None:
|
||||||
print(xlsfile, 'not data return')
|
print(xlsfile, 'not data return')
|
||||||
return
|
return
|
||||||
|
pri = data['summary'][0]['primary']
|
||||||
|
if isinstance(pri, str):
|
||||||
|
data['summary'][0]['primary'] = [pri]
|
||||||
tmpl = tmpls.get(dbtype.lower())
|
tmpl = tmpls.get(dbtype.lower())
|
||||||
if tmpl is None:
|
if tmpl is None:
|
||||||
raise Exception('%s database not implemented' % dbtype)
|
raise Exception('%s database not implemented' % dbtype)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user