pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit 97e5a8eb01d635c8b2399344322bebda24abaa4f
parent 3a13a40567f5a50b2039e903340bd8e7e235bfa4
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sat,  4 Apr 2015 12:57:19 -0600

price_scraper: flip wrong logic

Diffstat:
Mprice_scraper | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/price_scraper b/price_scraper @@ -172,7 +172,7 @@ sub get_valid_price # XXX: uses the first found price in the page # XXX: this does not work on single digit prices, ie $7.00 my ($price, @others) = ($search_prices[0] =~ m/(\d[\d,]+)/); - if (!defined $price && @others) { + if (!defined $price || @others) { print $log "error: $hdr: wrong number of regexs\n"; return undef; }