1.优化显示

This commit is contained in:
李伟 2022-11-07 16:01:38 +08:00
parent e553dfb10c
commit 3c5582d526

View File

@ -93,6 +93,7 @@ def chkData(data):
if 'pass_why' in res1:
key16 = res1['pass_why']
res1['pass_why'] = pass_why_dict.get(key16, '')
try:
if 'work_list' in res1:
work_list = res1['work_list']
if work_list:
@ -122,15 +123,9 @@ def chkData(data):
split_str1 = ''
if '' in work_list[true_index]['time']:
split_str2 = ''
try:
if int(i['time'].split(split_str1)[0].replace('.', '').replace('/', '')) > int(
work_list[true_index]['time'].split(split_str2)[0].replace('.', '').replace('/', '')):
true_index = index
except:
true_index = index
# if int(i['time'].split(split_str1)[0].replace('.', '').replace('/', '')) > int(
# work_list[true_index]['time'].split(split_str2)[0].replace('.', '').replace('/', '')):
# true_index = index
work_dict = work_list[true_index]
work_list = [work_dict]
bast_index = 0
@ -158,6 +153,8 @@ def chkData(data):
else:
work_list = []
res1['work_list'] = work_list
except:
res1['work_list'] = []
if 'project_undergo' in res1:
project_undergo = res1['project_undergo']
if project_undergo: