def get_participant(participant_id):
    """Get the participant with the given id."""
    try:
        ppt = models.Participant.query.filter_by(id=participant_id).one()
    except NoResultFound:
        return error_response(
            error_type="/participant GET: no participant found", status=403
        )

    # return the data
    return success_response(participant=ppt.__json__())
def get_participant ( participant_id ) : try : ppt = models . Participant . query . filter_by ( id = participant_id ) . one ( ) except NoResultFound : return error_response ( error_type = "/participant GET: no participant found" , status = 403 ) return success_response ( participant = ppt . __json__ ( ) )
Get the participant with the given id.