添加功能

This commit is contained in:
zhou
2025-03-19 18:06:30 +08:00
parent 41b40c66f3
commit 73b111cecf
+1 -1
View File
@@ -24,7 +24,7 @@ class YuthonLeaveWizard(models.Model):
raise ValidationError('请上传文件。')
book = xlrd.open_workbook(file_contents=base64.decodebytes(self.excel_file))
sh = book.sheet_by_index(0)
for rx in range(1,2):
for rx in range(1, sh.nrows):
row = sh.row(rx)
self.leave_import(row)