Пример #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
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)