pricecharts

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

commit a26c35f5aece23dc8edbbd291d3f4b0ec7e75875
parent 0adf6de7196ebc41af901bcc0545905386d75f3b
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Tue, 11 Nov 2014 14:21:08 -0700

price_scraper: wrap long line

Diffstat:
Mprice_scraper.pl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/price_scraper.pl b/price_scraper.pl @@ -22,8 +22,8 @@ my $dbh = get_dbh(); # pick the oldest product my $cutoff = time - (30 * 24 * 60 * 60); -my $sql = "select part_num, manufacturer from products where last_seen > $cutoff " . - "order by last_scraped asc"; +my $sql = "select part_num, manufacturer from products " . + "where last_seen > $cutoff order by last_scraped asc"; my ($part_num, $manufacturer) = $dbh->selectrow_array($sql); exit unless (defined $part_num);