!80 修复: 更新import_export.py以过滤空数据表

Merge pull request !80 from xwz1024/develop
This commit is contained in:
dvadmin
2024-12-29 09:30:09 +00:00
committed by Gitee

View File

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