From e553dfb10ca9a37c0d9e893ffd1928a002f7247e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Mon, 7 Nov 2022 11:43:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/interview.py | 36 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index d23321a..9b26e0b 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -122,9 +122,15 @@ def chkData(data): split_str1 = '—' if '—' in work_list[true_index]['time']: split_str2 = '—' - if int(i['time'].split(split_str1)[0].replace('.', '').replace('/', '')) > int( - work_list[true_index]['time'].split(split_str2)[0].replace('.', '').replace('/', '')): + 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 @@ -484,19 +490,19 @@ async def file_to_hw( # 简历初始文档 data_mode = { - "interview_name": "", - "interview_type": 1, - "interview_sign": 0, - "hope_money": "", - "feedback": 0, - "interview_round": 0, - "event_time": datetime.now(), - "name": "", - "phone": "", - "job_name": "", - "hr_name": "", - "work_exp": 0, - "interview_stage": 1, + "interview_name": "", #面试官姓名 + "interview_type": 1,#面试类型 + "interview_sign": 0,#面试签到 + "hope_money": "",#期望薪资 + "feedback": 0,#面试反馈 + "interview_round": 0,#面试轮次 + "event_time": datetime.now(),#投递简历时间 + "name": "",#求职者姓名 + "phone": "",#求职者电话 + "job_name": "",#应聘职位 + "hr_name": "",#hr姓名 + "work_exp": 0,#工作经验 + "interview_stage": 1,# "owner_name": 2, "education": 1, "work_undergo": [],