0e53f7a3 by 冯轩

MOD:max_img_count cfg

1 parent b6752f9c
...@@ -1358,11 +1358,13 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1358,11 +1358,13 @@ class Command(BaseCommand, LoggerMixin):
1358 if classify_1_str == '0': 1358 if classify_1_str == '0':
1359 try: 1359 try:
1360 # 2. 从EDMS获取PDF文件 1360 # 2. 从EDMS获取PDF文件
1361 # max_count_obj = Configs.objects.filter(id=2).first() 1361 try:
1362 # try: 1362 max_count_obj = Configs.objects.filter(id=6).first()
1363 # max_img_count = int(max_count_obj.value) 1363 max_img_count = int(max_count_obj.value)
1364 # except Exception as e: 1364 except Exception as e:
1365 max_img_count = 500 1365 max_img_count = 500
1366 self.online_log.info('{0} [get max_img_count fail] [task={1}]'.format(self.log_base, task_str))
1367 self.online_log.info('{0} [max_img_count] [task={1}] [max_img_count={2}]'.format(self.log_base, task_str, max_img_count))
1366 1368
1367 for times in range(consts.RETRY_TIMES): 1369 for times in range(consts.RETRY_TIMES):
1368 try: 1370 try:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!