454bef83 by 周伟奇

fix license1 bug

1 parent 7c92f402
......@@ -149,12 +149,11 @@ class Command(BaseCommand, LoggerMixin):
license_data = ocr_data.get('data', [])
if not license_data:
return
_, license_key = consts.CLASSIFY_PID_DICT.get(classify)
for license_dict in license_data:
res_list = []
for field, value in license_dict.items():
res_list.append((field, value))
license_summary.setdefault(license_key, []).append(res_list)
license_summary.setdefault(classify, []).append(res_list)
@staticmethod
def license2_process(ocr_res_2, license_summary, pid, classify):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!