def _ratings_success_msg(app, old_status, old_modified):
 if old_modified:
  old_modified = datetime.strptime(old_modified, '%Y-%m-%dT%H:%M:%S')
 if (old_status != app.status):
  return _submission_msgs()['complete']
 elif (old_modified != app.last_rated_time()):
  return _submission_msgs()['content_ratings_saved']

def _ratings_success_msg ( app , old_status , old_modified ) : if old_modified : old_modified = datetime . strptime ( old_modified , '%Y-%m-%dT%H:%M:%S' ) if ( old_status != app . status ) : return _submission_msgs ( ) [ 'complete' ] elif ( old_modified != app . last_rated_time ( ) ) : return _submission_msgs ( ) [ 'content_ratings_saved' ]
ratings can be created via iarc pinging our api .