数据详情

This commit is contained in:
Àî×ÚÕñ 2022-09-13 15:26:23 +08:00
parent fcc95b5a68
commit 59530cd7a1
2 changed files with 12 additions and 10 deletions

View File

@ -772,14 +772,14 @@ async def find_criterion(
data[i] = int(df[i][0]) data[i] = int(df[i][0])
else: else:
data[i] = df[i][0] data[i] = df[i][0]
if data['work_exp'] == 0: # if data['work_exp'] == 0:
data['work_exp'] = '应届生' # data['work_exp'] = '应届生'
elif data['work_exp'] >= 1 and data['work_exp'] < 3: # elif data['work_exp'] >= 1 and data['work_exp'] < 3:
data['work_exp'] = '1-3年' # data['work_exp'] = '1-3年'
elif data['work_exp'] >= 3 and data['work_exp'] < 5: # elif data['work_exp'] >= 3 and data['work_exp'] < 5:
data['work_exp'] = '1-3年' # data['work_exp'] = '1-3年'
else: # else:
data['work_exp'] = '5年以上' # data['work_exp'] = '5年以上'
if data.get('work_list', []): if data.get('work_list', []):
work_list = [json.loads(i) for i in data['work_list']] work_list = [json.loads(i) for i in data['work_list']]
if isinstance(work_list[0], str): if isinstance(work_list[0], str):

View File

@ -265,13 +265,15 @@ class InterviewDo:
for key, value in self.data_in.items(): for key, value in self.data_in.items():
if key == 'uid': if key == 'uid':
continue continue
if value == None:
continue
if value == '':
continue
if updateStr: if updateStr:
updateStr += ',' updateStr += ','
if isinstance(value, str): if isinstance(value, str):
updateStr += str(key) + ' = ' + "'" + value + "'" + ' ' updateStr += str(key) + ' = ' + "'" + value + "'" + ' '
continue continue
if value == None:
continue
updateStr += str(key) + ' = ' + str(value) + ' ' updateStr += str(key) + ' = ' + str(value) + ' '
if 'uid' in self.data_in: if 'uid' in self.data_in:
self.where.update({ self.where.update({