!80 修复: 更新import_export.py以过滤空数据表
Merge pull request !80 from xwz1024/develop
This commit is contained in:
@@ -86,4 +86,5 @@ def import_to_data(file_url, field_data, m2m_fields=None):
|
|||||||
else:
|
else:
|
||||||
array[key] = cell_value
|
array[key] = cell_value
|
||||||
tables.append(array)
|
tables.append(array)
|
||||||
return tables
|
data = [i for i in tables if len(i) != 0]
|
||||||
|
return data
|
||||||
|
|||||||
Reference in New Issue
Block a user