Exemplo n.º 1
0
def get_job_experience_info(user_id):
    """获取该用户想展示的所有工作经验"""
    job_experience_infos = search_state1_allinfo(table="job_experience", user_id=user_id)
    job_experience_infos = base.delete_userid_statement(job_experience_infos)
    job_experience_infos = base.delete_createtime_statement(job_experience_infos)
    for x in job_experience_infos:
        x["coperation_starttime"] = base.delete_time(str(x["coperation_starttime"]))
        x["coperation_endtime"] = base.delete_time(str(x["coperation_endtime"]))
    return job_experience_infos
Exemplo n.º 2
0
def get_project_experience_info(user_id):
    """获取该用户想展示的所有项目经验"""
    project_experience_infos = search_state1_allinfo(table="project_experience", user_id=user_id)
    project_experience_infos = base.delete_userid_statement(project_experience_infos)
    project_experience_infos = base.delete_createtime_statement(project_experience_infos)
    for x in project_experience_infos:
        x["project_starttime"] = base.delete_time(str(x["project_starttime"]))
        x["project_endtime"] = base.delete_time(str(x["project_endtime"]))
    print project_experience_infos
    return project_experience_infos