feff9d23 by 周伟奇

fix gb

1 parent e2dacd53
...@@ -413,8 +413,6 @@ class Command(BaseCommand, LoggerMixin): ...@@ -413,8 +413,6 @@ class Command(BaseCommand, LoggerMixin):
413 elif classify == consts.MVC_CLASSIFY: 413 elif classify == consts.MVC_CLASSIFY:
414 rebuild_data_dict = {} 414 rebuild_data_dict = {}
415 position_dict = {} 415 position_dict = {}
416 rebuild_data_dict[consts.IMG_PATH_KEY] = img_path
417 rebuild_data_dict[consts.SECTION_IMG_PATH_KEY] = section_img_path
418 mvc_page = license_data.pop('page', 'VehicleRCI') 416 mvc_page = license_data.pop('page', 'VehicleRCI')
419 mvc_res = license_data.pop('results', {}) 417 mvc_res = license_data.pop('results', {})
420 if mvc_page == 'VehicleRegArea': 418 if mvc_page == 'VehicleRegArea':
...@@ -445,6 +443,9 @@ class Command(BaseCommand, LoggerMixin): ...@@ -445,6 +443,9 @@ class Command(BaseCommand, LoggerMixin):
445 'width': tmp_position_list[2], 443 'width': tmp_position_list[2],
446 } 444 }
447 } 445 }
446 rebuild_data_dict[consts.ALL_POSITION_KEY_2] = position_dict
447 rebuild_data_dict[consts.IMG_PATH_KEY_2] = img_path
448 rebuild_data_dict[consts.SECTION_IMG_PATH_KEY_2] = section_img_path
448 else: 449 else:
449 for cn_key, detail_dict in mvc_res.items(): 450 for cn_key, detail_dict in mvc_res.items():
450 rebuild_data_dict[cn_key] = detail_dict.get('words', '') 451 rebuild_data_dict[cn_key] = detail_dict.get('words', '')
...@@ -458,8 +459,10 @@ class Command(BaseCommand, LoggerMixin): ...@@ -458,8 +459,10 @@ class Command(BaseCommand, LoggerMixin):
458 'width': position_list[2], 459 'width': position_list[2],
459 } 460 }
460 } 461 }
462 rebuild_data_dict[consts.ALL_POSITION_KEY] = position_dict
463 rebuild_data_dict[consts.IMG_PATH_KEY] = img_path
464 rebuild_data_dict[consts.SECTION_IMG_PATH_KEY] = section_img_path
461 del mvc_res 465 del mvc_res
462 rebuild_data_dict[consts.ALL_POSITION_KEY] = position_dict
463 license_summary.setdefault(classify, []).append(rebuild_data_dict) 466 license_summary.setdefault(classify, []).append(rebuild_data_dict)
464 467
465 468
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!