Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump smarter_csv from 1.12.1 to 1.13.1 #4667

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ GEM
slim (5.2.1)
temple (~> 0.10.0)
tilt (>= 2.1.0)
smarter_csv (1.12.1)
smarter_csv (1.13.1)
snaky_hash (2.0.1)
hashie
version_gem (~> 1.1, >= 1.1.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/os_data_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module OrdnanceSurvey
def self.upsert_csv_data(csv_stream)
fully_processed = true
csv_headers = os_address_headers.downcase.split(',').map(&:to_sym)
SmarterCSV.process(csv_stream, user_provided_headers: csv_headers, chunk_size: 1000, remove_blank_values: false) do |chunk|
SmarterCSV.process(csv_stream, user_provided_headers: csv_headers, headers_in_file: true, chunk_size: 1000, remove_blank_values: false) do |chunk|
ActiveRecord::Base.connection_pool.with_connection do |db|
db.begin_db_transaction
chunk.each do |row|
Expand Down
Loading