fix different page have 6 column

This commit is contained in:
bcomsugi 2024-01-18 15:16:15 +07:00
parent 7325a7ab5f
commit c0de7cc45b

View File

@ -205,6 +205,19 @@ def read_DN_excel(filename):
xylist.append(y)
if len(xylist)==5:
data[idx]=xylist
elif len(x)>5 and (idx % 2)==0 and coly==0:
pass
print("Different page, seconde line have different column width (6)")
boloddcolumn=True
for _ in x[:len(x)-2]:
print(_)
if _ != None:
boloddcolumn=False
print(boloddcolumn)
if boloddcolumn:
del x[0]
print(x)
elif coly != 0 and lenList == len(x):
for idy, y in enumerate(x):
if idy!=coly:
@ -245,7 +258,7 @@ def read_DN_excel(filename):
for idx, x in enumerate(newdata):
pass
# print(idx, x)
print(idx, x)
print(f'len newdata={len(newdata)}')