正则解析

This commit is contained in:
Àî×ÚÕñ 2022-09-07 17:51:00 +08:00
parent adb3d46f39
commit 2307b5db23
2 changed files with 1367 additions and 1 deletions

View File

@ -18,6 +18,7 @@ from core.security import get_password_hash
from schemas import ExtendendOAuth
from utils.dingding import *
from utils.jianli import get_resume
from utils.re_to_jianli import fmt_txt, getText_pdf
from utils.func import get_uid
import crud, schemas
from datetime import datetime
@ -377,7 +378,8 @@ async def interview_file_insert(
try:
res = obsClient.getObject('legu-cdn-source', data_in.filenames, path_data + '/' + filename)
if res.status < 300:
data = get_resume(filename, path_data)
chk_txt = getText_pdf(filename)
data = fmt_txt(chk_txt)
education = data['education']
# 学历int转化
education_int = {

1364
utils/re_to_jianli.py Normal file

File diff suppressed because it is too large Load Diff