0cb79d87 by 冯轩

init

1 parent a5ab8843
......@@ -11,9 +11,10 @@ from openpyxl import Workbook
from openpyxl.styles import PatternFill, numbers
from openpyxl.utils import get_column_letter
from apps.doc import consts
from common.mixins import LoggerMixin
class BSWorkbook(Workbook):
class BSWorkbook(Workbook, LoggerMixin):
def __init__(self, interest_keyword, salary_keyword, loan_keyword, wechat_keyword, repayments_keyword, *args, **kwargs):
super().__init__(*args, **kwargs)
......@@ -38,6 +39,7 @@ class BSWorkbook(Workbook):
# self.border = Border(left=self.bd, top=self.bd, right=self.bd, bottom=self.bd)
self.MAX_MEAN = 31
self.need_follow = False
self.log_base = '[workbook excel]'
# @staticmethod
# def date_calibration(date_str):
......@@ -710,6 +712,8 @@ class BSWorkbook(Workbook):
# 'sheet': ['sheet_name']
# }
# }
self.online_log.warn('{0} [bs_rebuild] [bs_summary={1}] [res_count_tuple={2}]'.format(
self.log_base, bs_summary, res_count_tuple))
for card, summary in bs_summary.items():
special_nhzs = False
new_card = self.get_new_card(card)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!