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