fix: import_cma2不事先删除
This commit is contained in:
parent
7269479ff6
commit
3287200a55
|
@ -642,8 +642,8 @@ def import_cma2(filename, path):
|
|||
sheet = wb.worksheets[0]
|
||||
datalist = []
|
||||
sszx = filename.split('-')[0]
|
||||
if CMA.objects.filter(sszx=sszx, type='sub').exists():
|
||||
CMA.objects.filter(sszx=sszx, type='sub').delete()
|
||||
# if CMA.objects.filter(sszx=sszx, type='sub').exists():
|
||||
# CMA.objects.filter(sszx=sszx, type='sub').delete()
|
||||
i = 3
|
||||
max_row = sheet.max_row
|
||||
defaultv = {}
|
||||
|
|
Loading…
Reference in New Issue