正则解析
This commit is contained in:
parent
cd8dfea5b9
commit
efecf08a9f
@ -378,7 +378,7 @@ async def interview_file_insert(
|
|||||||
try:
|
try:
|
||||||
res = obsClient.getObject('legu-cdn-source', data_in.filenames, path_data + '/' + filename)
|
res = obsClient.getObject('legu-cdn-source', data_in.filenames, path_data + '/' + filename)
|
||||||
if res.status < 300:
|
if res.status < 300:
|
||||||
chk_txt = getText_pdf(filename)
|
chk_txt = getText_pdf(path_data + '/' + filename)
|
||||||
data = fmt_txt(chk_txt)
|
data = fmt_txt(chk_txt)
|
||||||
education = data['education']
|
education = data['education']
|
||||||
# 学历int转化
|
# 学历int转化
|
||||||
|
@ -204,6 +204,8 @@ def fmt_txt(chk_str):
|
|||||||
dict_chk['at_school'] = chk_i
|
dict_chk['at_school'] = chk_i
|
||||||
time_index = index
|
time_index = index
|
||||||
continue
|
continue
|
||||||
|
if '年' in chk_i:
|
||||||
|
continue
|
||||||
time_index = index + 2
|
time_index = index + 2
|
||||||
dict_chk['at_school'] = school_list[index] + school_list[index + 1] + school_list[index + 2]
|
dict_chk['at_school'] = school_list[index] + school_list[index + 1] + school_list[index + 2]
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user