Skip to content

Commit d75f3c0

Browse files
authored
Merge pull request NetrunnerDB#366 from plural/remove-import-debug-puts
Remove leftover debug puts from cards.rake
2 parents 3b25967 + d9d21a4 commit d75f3c0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/tasks/cards.rake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ namespace :cards do
407407
def import_printings(printings)
408408
card_sets = CardSet.all.index_by(&:id)
409409

410-
puts "Printings argument is #{printings.size}"
411410
new_printings = []
412411
printings.each do |printing|
413412
new_printings << RawPrinting.new(
@@ -425,14 +424,11 @@ namespace :cards do
425424

426425
num_printings = 0
427426
new_printings.each_slice(250) do |s|
428-
puts s.inspect
429427
num_printings += s.length
430428
puts " #{num_printings} printings"
431429
RawPrinting.import s, on_duplicate_key_update: { conflict_target: [:id], columns: :all }, raise_error: true
432430
end
433431

434-
puts "Printings has #{RawPrinting.count} entries"
435-
436432
# Use ROW_NUMBER() to identify the position of each printing in the each set.
437433
sql = <<~SQL
438434
UPDATE

0 commit comments

Comments
 (0)