This commit is contained in:
JrD
2020-08-31 19:11:57 +08:00
parent fabfd9ec37
commit acac99d13c
4 changed files with 6 additions and 12 deletions
+1 -6
View File
@@ -201,12 +201,7 @@ def check_format(format, count):
:param count: 数量
:return: 导出格式
"""
formats = ['rst', 'csv', 'tsv', 'json', 'yaml', 'html',
'jira', 'xls', 'xlsx', 'dbf', 'latex', 'ods']
if format == 'xls' and count > 65000:
logger.log('ALERT', '\'xls\' file is limited to 65000 lines')
logger.log('ALERT', 'So use xlsx format replace')
return 'xlsx'
formats = ['csv', 'json', ]
if format in formats:
return format
else: