def publish_exploration_and_update_user_profiles(committer_id, exp_id):
 rights_manager.publish_exploration(committer_id, exp_id)
 contribution_time_msec = utils.get_current_time_in_millisecs()
 contributor_ids = get_exploration_summary_by_id(exp_id).contributor_ids
 for contributor in contributor_ids:
  user_services.update_first_contribution_msec_if_not_set(contributor, contribution_time_msec)

def publish_exploration_and_update_user_profiles ( committer_id , exp_id ) : rights_manager . publish_exploration ( committer_id , exp_id ) contribution_time_msec = utils . get_current_time_in_millisecs ( ) contributor_ids = get_exploration_summary_by_id ( exp_id ) . contributor_ids for contributor in contributor_ids : user_services . update_first_contribution_msec_if_not_set ( contributor , contribution_time_msec )
publishes the exploration with publish_exploration() function in rights_manager .