修复导出问题

This commit is contained in:
Jing Ling
2019-12-29 12:48:30 +08:00
parent e47df26436
commit aab9bcd3b4
3 changed files with 7 additions and 9 deletions
+1 -2
View File
@@ -38,8 +38,7 @@ def export(table, db=None, valid=None, dpath=None, format='csv', show=False):
dpath = utils.check_dpath(dpath)
database = Database(db)
rows = database.export_data(table, valid) # 意外情况导出全部子域
line = len(rows)
format = utils.check_format(format, line)
format = utils.check_format(format, len(rows))
if show:
print(rows.dataset)
if format == 'txt':