This commit is contained in:
Àî×ÚÕñ 2022-09-19 17:35:45 +08:00
parent d8f4f75f7b
commit 4629073fba

View File

@ -116,7 +116,7 @@ def chkData(data):
if chk_time > bast_time: if chk_time > bast_time:
bast_time = chk_time bast_time = chk_time
bast_index = index bast_index = index
data['firm'] = work_list[bast_index] data['firm'] = work_list[bast_index]['company_name']
else: else:
work_list = [] work_list = []
res1['work_list'] = work_list res1['work_list'] = work_list
@ -940,7 +940,7 @@ async def find_criterion(
if chk_time > bast_time: if chk_time > bast_time:
bast_time = chk_time bast_time = chk_time
bast_index = index bast_index = index
data['firm'] = work_list[bast_index] data['firm'] = work_list[bast_index]['company_name']
if data.get('project_undergo', []): if data.get('project_undergo', []):
project_undergo = [json.loads(i) for i in data['project_undergo']] project_undergo = [json.loads(i) for i in data['project_undergo']]
if isinstance(project_undergo[0], str): if isinstance(project_undergo[0], str):