def _flag_rereview_adult(app, ratings_body, rating):
 old_rating = app.content_ratings.filter(ratings_body=ratings_body.id)
 if (not old_rating.exists()):
  return
 if (rating.adult and (not old_rating[0].get_rating().adult)):
  RereviewQueue.flag(app, mkt.LOG.CONTENT_RATING_TO_ADULT, message=_('Content rating changed to Adult.'))

def _flag_rereview_adult ( app , ratings_body , rating ) : old_rating = app . content_ratings . filter ( ratings_body = ratings_body . id ) if ( not old_rating . exists ( ) ) : return if ( rating . adult and ( not old_rating [ 0 ] . get_rating ( ) . adult ) ) : RereviewQueue . flag ( app , mkt . LOG . CONTENT_RATING_TO_ADULT , message = _ ( 'Content rating changed to Adult.' ) )
flag app for rereview if it receives an adult content rating .