修复路径问题

This commit is contained in:
Jing Ling
2020-02-23 17:56:44 +08:00
parent 6e4ce73785
commit 8da256262c
3 changed files with 18 additions and 22 deletions
+2
View File
@@ -12,6 +12,7 @@ import fire
from common import utils
from common.database import Database
from config import logger
def export(table, db=None, valid=False, path=None, format='csv', show=False):
@@ -47,6 +48,7 @@ def export(table, db=None, valid=False, path=None, format='csv', show=False):
data = rows.export(format)
database.close()
utils.save_data(path, data)
logger.log('INFOR', f'{table}主域的子域结果 {path}')
data_dict = rows.as_dict()
return data_dict