fix bug
Showing
2 changed files
with
3 additions
and
2 deletions
... | @@ -74,7 +74,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -74,7 +74,7 @@ class Command(BaseCommand, LoggerMixin): |
74 | 74 | ||
75 | def pdf_download(self, doc, business_type): | 75 | def pdf_download(self, doc, business_type): |
76 | if doc is None: | 76 | if doc is None: |
77 | return None, None, None | 77 | return None, None, None, None |
78 | # TODO EDMS下载pdf | 78 | # TODO EDMS下载pdf |
79 | doc_data_path = os.path.join(self.data_dir, business_type, str(doc.id)) | 79 | doc_data_path = os.path.join(self.data_dir, business_type, str(doc.id)) |
80 | os.makedirs(doc_data_path, exist_ok=True) | 80 | os.makedirs(doc_data_path, exist_ok=True) | ... | ... |
... | @@ -28,7 +28,8 @@ class BSWorkbook(Workbook): | ... | @@ -28,7 +28,8 @@ class BSWorkbook(Workbook): |
28 | self.border = Border(left=self.bd, top=self.bd, right=self.bd, bottom=self.bd) | 28 | self.border = Border(left=self.bd, top=self.bd, right=self.bd, bottom=self.bd) |
29 | self.MAX_MEAN = 31 | 29 | self.MAX_MEAN = 31 |
30 | 30 | ||
31 | def sheet_prune(self, ws): | 31 | @staticmethod |
32 | def sheet_prune(ws): | ||
32 | ws.insert_cols(1, amount=consts.FIXED_COL_AMOUNT) | 33 | ws.insert_cols(1, amount=consts.FIXED_COL_AMOUNT) |
33 | for col in range(consts.FIXED_COL_AMOUNT + 1, ws.max_column + 1): | 34 | for col in range(consts.FIXED_COL_AMOUNT + 1, ws.max_column + 1): |
34 | header_value = ws.cell(1, col).value | 35 | header_value = ws.cell(1, col).value | ... | ... |
-
Please register or sign in to post a comment