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
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
def get_by_id(proofId): result = Proof.get_by_id(proofId=proofId) return Schema().dump(result).data