예제 #1
0
def otherbody(id):
    try:
        resp = sqlhelper.do_selectsinglebyid("CALL usp_GetOtherBody(%s)", id)
        resp.status_code = 200
        return resp
    except Exception as e:
        print(e)
예제 #2
0
파일: users.py 프로젝트: krumphau/tdt
def get_user(email):
    try:
        resp = sqlhelper.do_selectsinglebyid("CALL usp_GetUser(%s)", email)
        resp.status_code = 200
        return resp
    except Exception as e:
        print(e)
예제 #3
0
def region(id):
    try:
        resp = sqlhelper.do_selectsinglebyid("CALL usp_GetRegion(%s)", id)
        resp.status_code = 200
        return resp
    except Exception as e:
        print(e)
예제 #4
0
def projectofficer(id):
    try:
        resp = sqlhelper.do_selectsinglebyid("CALL usp_GetProjectOfficer(%s)",
                                             id)
        resp.status_code = 200
        return resp
    except Exception as e:
        print(e)