Compare commits
No commits in common. "6655ad99001b2e176f147876e8a558eb3e29badd" and "9ee7940a87bee5df1db02c51c78d1339fa6a62f4" have entirely different histories.
6655ad9900
...
9ee7940a87
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ module FoodsoftArticleImport
|
|||
# Split string and remove beginning "
|
||||
matched = row[2].gsub(/^\"/, "").gsub(/\"$/, "").match(REGEX[:main])
|
||||
|
||||
next if matched.nil?
|
||||
if matched.nil?
|
||||
puts "No regular article data for #{row[1]}: #{row[2]}"
|
||||
next
|
||||
else
|
||||
|
||||
name, units, price_high, price_low = matched.captures
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue