1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Print before import

This commit is contained in:
2022-02-25 13:07:54 +00:00
parent 6e712cd199
commit a3724914aa

View File

@@ -82,6 +82,7 @@ class WrestlingdevImporter
def parse_wrestlers(wrestlers)
wrestlers.each do | wrestler |
puts wrestler
wrestler_array = wrestler.split(@attribute_separator,-1)
new_wrestler = Wrestler.new
new_wrestler.name = wrestler_array[0]
@@ -107,6 +108,7 @@ class WrestlingdevImporter
def parse_matches(matches)
matches.each do | match |
puts match
@tournament.reload
@tournament.mats.reload
match_array = match.split(@attribute_separator,-1)
@@ -147,6 +149,7 @@ class WrestlingdevImporter
def parse_schools(schools)
schools.each do | school |
puts school
school_array = school.split(@attribute_separator,-1)
new_school = School.new
new_school.tournament_id = @tournament.id
@@ -158,6 +161,7 @@ class WrestlingdevImporter
def parse_weights(weights)
weights.each do | weight |
puts weight
weight_array = weight.split(@attribute_separator,-1)
new_weight = Weight.new
new_weight.tournament_id = @tournament.id
@@ -168,6 +172,7 @@ class WrestlingdevImporter
def parse_mats(mats)
mats.each do | mat |
puts mat
mat_array = mat.split(@attribute_separator,-1)
new_mat = Mat.new
new_mat.tournament_id = @tournament.id