95499726 by 周伟奇

fix bug

1 parent 8d69a62d
...@@ -439,7 +439,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -439,7 +439,7 @@ class Command(BaseCommand, LoggerMixin):
439 439
440 with lock: 440 with lock:
441 doc_res_dict = res_dict.setdefault(task_str, {}) 441 doc_res_dict = res_dict.setdefault(task_str, {})
442 doc_res_dict[os.path.basename(img_path)] = ocr_1_res 442 doc_res_dict[img_path] = ocr_1_res
443 res_dict[task_str] = doc_res_dict 443 res_dict[task_str] = doc_res_dict
444 todo_count = todo_count_dict.get(task_str) 444 todo_count = todo_count_dict.get(task_str)
445 if todo_count == 1: 445 if todo_count == 1:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!