Exemplo n.º 1
0
def get_by_id(proofId):
    result = Proof.get_by_id(proofId=proofId)

    if result is None:
        raise NotFoundException("Proof not found. (proofId=%d)" % proofId)

    return Schema().dump(result).data
Exemplo n.º 2
0
def get_by_id(proofId):
    result = Proof.get_by_id(proofId=proofId)

    if result is None:
        raise NotFoundException("Proof not found. (proofId=%d)" % proofId,
                                code=MESSAGE_CODE_PROOF_NOT_FOUND)

    return Schema().dump(result).data
Exemplo n.º 3
0
def get_by_id(proofId):
    result = Proof.get_by_id(proofId=proofId)

    return Schema().dump(result).data