From 9ef3c37d759ea6f5fa13e850e614e1ad1baf0e61 Mon Sep 17 00:00:00 2001
From: 周伟奇 <zhouweiqi@situdata.com>
Date: Mon, 17 Aug 2020 13:56:35 +0800
Subject: [PATCH] fix bug

---
 src/apps/doc/management/commands/doc_ocr_process.py | 2 +-
 src/apps/doc/ocr/wb.py                              | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/apps/doc/management/commands/doc_ocr_process.py b/src/apps/doc/management/commands/doc_ocr_process.py
index 9961652..3c98158 100644
--- a/src/apps/doc/management/commands/doc_ocr_process.py
+++ b/src/apps/doc/management/commands/doc_ocr_process.py
@@ -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)
diff --git a/src/apps/doc/ocr/wb.py b/src/apps/doc/ocr/wb.py
index 7107164..66950cd 100644
--- a/src/apps/doc/ocr/wb.py
+++ b/src/apps/doc/ocr/wb.py
@@ -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
--
libgit2 0.24.0