Merge branch 'feature/portal-reocr' into feature/uat-tmp
Showing
1 changed file
with
6 additions
and
4 deletions
... | @@ -1361,11 +1361,13 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -1361,11 +1361,13 @@ class Command(BaseCommand, LoggerMixin): |
1361 | if classify_1_str == '0': | 1361 | if classify_1_str == '0': |
1362 | try: | 1362 | try: |
1363 | # 2. 从EDMS获取PDF文件 | 1363 | # 2. 从EDMS获取PDF文件 |
1364 | # max_count_obj = Configs.objects.filter(id=2).first() | 1364 | try: |
1365 | # try: | 1365 | max_count_obj = Configs.objects.filter(id=6).first() |
1366 | # max_img_count = int(max_count_obj.value) | 1366 | max_img_count = int(max_count_obj.value) |
1367 | # except Exception as e: | 1367 | except Exception as e: |
1368 | max_img_count = 500 | 1368 | max_img_count = 500 |
1369 | self.online_log.info('{0} [get max_img_count fail] [task={1}]'.format(self.log_base, task_str)) | ||
1370 | self.online_log.info('{0} [max_img_count] [task={1}] [max_img_count={2}]'.format(self.log_base, task_str, max_img_count)) | ||
1369 | 1371 | ||
1370 | for times in range(consts.RETRY_TIMES): | 1372 | for times in range(consts.RETRY_TIMES): |
1371 | try: | 1373 | try: | ... | ... |
-
Please register or sign in to post a comment