9ef3c37d by 周伟奇

fix bug

1 parent c40124d4
......@@ -74,7 +74,7 @@ class Command(BaseCommand, LoggerMixin):
def pdf_download(self, doc, business_type):
if doc is None:
return None, None, None
return None, None, None, None
# TODO EDMS下载pdf
doc_data_path = os.path.join(self.data_dir, business_type, str(doc.id))
os.makedirs(doc_data_path, exist_ok=True)
......
......@@ -28,7 +28,8 @@ class BSWorkbook(Workbook):
self.border = Border(left=self.bd, top=self.bd, right=self.bd, bottom=self.bd)
self.MAX_MEAN = 31
def sheet_prune(self, ws):
@staticmethod
def sheet_prune(ws):
ws.insert_cols(1, amount=consts.FIXED_COL_AMOUNT)
for col in range(consts.FIXED_COL_AMOUNT + 1, ws.max_column + 1):
header_value = ws.cell(1, col).value
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!