Skip to content

Commit 0354347

Browse files
committed
Update import_lpsn.rake
1 parent f11cd8a commit 0354347

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/tasks/import_lpsn.rake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ namespace :lpsn do
3535
type_name = row['nomenclatural_type']
3636
else
3737
pars[:nomenclatural_type_type] = 'Strain'
38-
pars[:nomenclatural_type_entry] = row['nomenclatural_type'].gsub('; ', ' = ')
38+
pars[:nomenclatural_type_entry] =
39+
row['nomenclatural_type'].gsub('; ', ' = ')
3940
end
4041

4142
# All additional data
@@ -83,7 +84,8 @@ namespace :lpsn do
8384
pars[:nomenclatural_type_id] =
8485
parsed_names[entry[:type_name]][:name_id]
8586
else
86-
warn "- Type name not in parsed names: #{entry[:type_name]}"
87+
warn "- Type name not in parsed names: #{entry[:name_id]} " +
88+
"(#{entry[:type_name]})"
8789
end
8890
end
8991
Name.find(entry[:name_id]).update(pars) unless pars.empty?

0 commit comments

Comments
 (0)