Skip to content

Commit

Permalink
removed prys
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalRealm committed Feb 25, 2023
1 parent 3b2f164 commit 65558e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/scrapper_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def scrape_info(supplier_name, url, supplier_id, part_number)
end
rescue
@scrapper.errors.add(:base, "Error: #{supplier_name} did not return any results for part number: #{part_number}")
binding.pry

return
end

Expand Down Expand Up @@ -133,7 +133,7 @@ def scrape_info(supplier_name, url, supplier_id, part_number)
scrape_info["inventory"] = 0
@scrapper.errors.add(:base, "Error: #{supplier_name} only has external stock for: #{part_number}")
else
binding.pry

scrape_info["inventory"] = driver.find_element(:xpath, "//*[@id='quantityAvailable']").text.gsub(/[^0-9]/, '').match(/\d{0,3}/)[0]
end
rescue NoMethodError
Expand All @@ -150,7 +150,7 @@ def scrape_info(supplier_name, url, supplier_id, part_number)

end
else
binding.pry

end


Expand Down

0 comments on commit 65558e2

Please sign in to comment.