# Usernames of program organizers WMF Community Insights survey

CSV.open('/home/weswikied/leaders_with_wikis.csv', 'wb') do |csv|
  csv << %w[username program_slug joined_program_at program_wikis]

  CoursesUsers.where(role: CoursesUsers::Roles::INSTRUCTOR_ROLE).each do |cu|
    next if cu.course.nil?
    csv << [cu.user.username, cu.course.slug, cu.created_at, cu.course.wikis.map(&:domain)]
  end
end

Add script for identifying program leaders on P&E Dashboard
Add script for identifying program leaders on P&E Dashboard

This is for use by WMF staff for the Community Insights survey.
