hensei-api/lib/tasks/import_data.rake
Justin Edmund 6db5faeb98
Add items from January/February 2025 (#184)
* Add new items

Items from:
- Unite and Fight (January 2025)
- Story Event (January 2025)
- Negima Collab (February 2025)
- January Flash Gala
- January Legend Festival
- February Flash Gala
- February character uncap

Data fixes for
- Chat Noir FLB (rarity was set to a bad value)
- End of year weapons (FLB date not set)

* Fix CSVs

* Fix data update rake task

* Add CSV require in BaseImporter
2025-02-24 16:09:30 -05:00

14 lines
503 B
Ruby

# frozen_string_literal: true
namespace :granblue do
desc "Import weapon, summon and character data from db/seed/updates. Use TEST=true for test mode."
task import_data: :environment do
require 'csv'
Dir[Rails.root.join('lib', 'granblue', '**', '*.rb')].each { |file| require file }
test_mode = ENV['TEST'] == 'true'
verbose = ENV['VERBOSE'] == 'true'
importer = PostDeployment::DataImporter.new(test_mode: test_mode, verbose: verbose)
importer.process_all_files
end
end