def get_component_review_by_repository_review_id_component_id(app, repository_review_id, component_id):
 sa_session = app.model.context.current
 return sa_session.query(app.model.ComponentReview).filter(and_((app.model.ComponentReview.table.c.repository_review_id == app.security.decode_id(repository_review_id)), (app.model.ComponentReview.table.c.component_id == app.security.decode_id(component_id)))).first()

def get_component_review_by_repository_review_id_component_id ( app , repository_review_id , component_id ) : sa_session = app . model . context . current return sa_session . query ( app . model . ComponentReview ) . filter ( and_ ( ( app . model . ComponentReview . table . c . repository_review_id == app . security . decode_id ( repository_review_id ) ) , ( app . model . ComponentReview . table . c . component_id == app . security . decode_id ( component_id ) ) ) ) . first ( )
get a component_review from the database via repository_review_id and component_id .