diff --git a/script/queries/policies_missing_transmissions.rb b/script/queries/policies_missing_transmissions.rb index 4f415f0f..7cfb7472 100644 --- a/script/queries/policies_missing_transmissions.rb +++ b/script/queries/policies_missing_transmissions.rb @@ -23,7 +23,7 @@ timestamp = Time.now.strftime('%Y%m%d%H%M') CSV.open("policies_without_transmissions_#{timestamp}.csv","w") do |csv| - csv << ["Created At", "Enrollment Group ID", "Carrier", "Employer", "Subscriber Name", "Subscriber HBX ID"] + csv << ["Created At", "Enrollment Group ID", "Carrier", "Employer", "Subscriber HBX ID"] pols_2015.each do |pol| if !all_pol_ids.include?(pol.id) if pol.subscriber.present? && !pol.canceled? @@ -32,9 +32,8 @@ eg_id = pol.eg_id carrier = pol.plan.carrier.abbrev employer = pol.try(:employer).try(:name) - subscriber_name = pol.subscriber.person.full_name rescue "" subscriber_hbx_id = pol.subscriber.m_id - csv << [created_at,eg_id,carrier,employer,subscriber_name,subscriber_hbx_id] + csv << [created_at,eg_id,carrier,employer,subscriber_hbx_id] end end end