fix bug
Showing
2 changed files
with
5 additions
and
5 deletions
| ... | @@ -8,13 +8,13 @@ class DocHandler: | ... | @@ -8,13 +8,13 @@ class DocHandler: |
| 8 | @staticmethod | 8 | @staticmethod |
| 9 | def get_link(doc_id, business_type, file='pdf'): | 9 | def get_link(doc_id, business_type, file='pdf'): |
| 10 | if file == 'pdf': | 10 | if file == 'pdf': |
| 11 | return '/data/{1}/{0}/{2}/{0}.pdf'.format(doc_id, business_type, consts.TMP_DIR_NAME) | 11 | return '/data/{1}/{2}/{0}/{0}.pdf'.format(doc_id, business_type, consts.TMP_DIR_NAME) |
| 12 | elif file == 'img': | 12 | elif file == 'img': |
| 13 | return '/data/{1}/{0}/{2}/{0}_img.zip'.format(doc_id, business_type, consts.TMP_DIR_NAME) | 13 | return '/data/{1}/{2}/{0}/{0}_img.zip'.format(doc_id, business_type, consts.TMP_DIR_NAME) |
| 14 | elif file == 'src_excel': | 14 | elif file == 'src_excel': |
| 15 | return '/data/{1}/{0}/{2}/src.xlsx'.format(doc_id, business_type, consts.TMP_DIR_NAME) | 15 | return '/data/{1}/{2}/{0}/src.xlsx'.format(doc_id, business_type, consts.TMP_DIR_NAME) |
| 16 | else: | 16 | else: |
| 17 | return '/data/{1}/{0}/{2}/{0}.xlsx'.format(doc_id, business_type, consts.TMP_DIR_NAME) | 17 | return '/data/{1}/{2}/{0}/{0}.xlsx'.format(doc_id, business_type, consts.TMP_DIR_NAME) |
| 18 | 18 | ||
| 19 | def get_doc_list(self, doc_queryset, business_type): | 19 | def get_doc_list(self, doc_queryset, business_type): |
| 20 | for doc_dict in doc_queryset: | 20 | for doc_dict in doc_queryset: | ... | ... |
| ... | @@ -319,7 +319,7 @@ class BSWorkbook(Workbook): | ... | @@ -319,7 +319,7 @@ class BSWorkbook(Workbook): |
| 319 | cn_str = ''.join(cn_chars) | 319 | cn_str = ''.join(cn_chars) |
| 320 | row_value[1] = re.sub(consts.CN_RE, '', row_value[1]) | 320 | row_value[1] = re.sub(consts.CN_RE, '', row_value[1]) |
| 321 | if isinstance(row_value[2], str): | 321 | if isinstance(row_value[2], str): |
| 322 | row_value[2] = cn_str + row_value[2] | 322 | row_value[2] = '{0}\n{1}'.format(cn_str, row_value[2]) |
| 323 | return row_value | 323 | return row_value |
| 324 | 324 | ||
| 325 | def build_month_sheet(self, ms, card, month_mapping, is_reverse, statistics_header_info, max_column, classify): | 325 | def build_month_sheet(self, ms, card, month_mapping, is_reverse, statistics_header_info, max_column, classify): | ... | ... |
-
Please register or sign in to post a comment