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

This commit is contained in:
zhulj
2024-09-18 15:48:49 +08:00
parent 652ad1355a
commit 69d23c6f69

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