fix bom2
This commit is contained in:
parent
067650a677
commit
59214ca345
|
@ -158,12 +158,12 @@ def bom2(schematic, attributes)
|
|||
csv = CSV.parse(list,:col_sep => ":")
|
||||
csv[1..-1].each do |row|
|
||||
line = {}
|
||||
line.each_index do |col|
|
||||
row.each_index do |col|
|
||||
line[csv[0][col]] = row[col] unless row[col]=="unknown"
|
||||
end
|
||||
to_return << line
|
||||
end
|
||||
return csv
|
||||
return to_return
|
||||
end
|
||||
|
||||
# ===============
|
||||
|
|
Loading…
Reference in New Issue