Skip to content

Commit

Permalink
Merge pull request #308 from webaissance/region
Browse files Browse the repository at this point in the history
iframe page for embedding in 3rd party websites #283
  • Loading branch information
mattsayre authored May 23, 2022
2 parents 9fb1420 + e79376f commit 041ae2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/region_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ def self.get_satisfaction(satisfaction)
end

CSV_COLUMNS = [
'Response #', 'Source', 'Date', 'Region', 'Access', 'How are you connected','Why No Access', 'Address', 'Zip', 'Latitude', 'Longitude', 'Accuracy', 'Price Per Month', 'Download Speed', 'Upload Speed', 'Ping', 'Actual Price Per Mbps', 'Provider', 'IP'
'Response #', 'Source', 'Date', 'Region', 'Access', 'Why No Access', 'Address', 'Zip', 'Latitude', 'Longitude', 'Price Per Month', 'Download Speed', 'Upload Speed', 'Ping', 'Actual Price Per Mbps', 'Provider', 'IP'
]

CSV_KEYS = [
:id, :source, :date, :region, :access, :connected_with, :whynoaccess, :address, :zip_code, :latitude, :longitude, :accuracy, :monthly_price, :actual_download_speed, :actual_upload_speed, :ping, :actual_price, :provider, :ip_address
:id, :source, :date, :region, :access, :whynoaccess, :address, :zip_code, :latitude, :longitude, :monthly_price, :actual_download_speed, :actual_upload_speed, :ping, :actual_price, :provider, :ip_address
]

def self.csv_header
Expand All @@ -338,8 +338,8 @@ def self.csv_header
end

def to_csv_row
CSV::Row.new(CSV_KEYS, [id, source, test_date.strftime('%B %d, %Y'), region, access, connected_with, whynoaccess, address,
zip_code, latitude, longitude, accuracy, monthly_price, actual_down_speed,
CSV::Row.new(CSV_KEYS, [id, source, test_date.strftime('%B %d, %Y'), region, access, whynoaccess, address,
zip_code, latitude, longitude, monthly_price, actual_down_speed,
actual_upload_speed, ping, actual_price, provider, ip_address])
end

Expand Down

0 comments on commit 041ae2e

Please sign in to comment.