add drop down

This commit is contained in:
jze9
2025-04-23 23:53:43 +05:00
parent bccbcad79f
commit 00527fd93d
4 changed files with 37 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ class SaveDataXLSX():
def __init__(self,file_path:str,sheet_name:str,data):
wb = xl.load_workbook(filename=file_path)
sheet = wb[sheet_name]
max_row = sheet.max_row+2
max_row = sheet.max_row+1
for new_row,file in enumerate(data):
sheet.cell(row=max_row+new_row,column=2,value=file.directory)
sheet.cell(row=max_row+new_row,column=3,value=file.cad_number)