This commit is contained in:
yumoqing 2026-04-21 16:51:22 +08:00
parent 78677f9fb2
commit f0eebd7c8a

View File

@ -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)