pricecharts

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

commit 2684daec1b3ed69b00ba664c9a7ab19462e79ef4
parent af23c1e85540b72fda0f8649123c74c63a22fe66
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sun,  8 Feb 2015 19:56:41 -0700

gen_index: minor fixups

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

diff --git a/gen_index.pl b/gen_index.pl @@ -49,7 +49,7 @@ print "info: $vendors vendors\n" if ($args{v}); my $time = time - (7 * 24 * 60 * 60); $query = "select count(part_num) from products where first_seen > ?"; my ($new_products) = $dbh->selectrow_array($query, undef, $time); -print "info: $new_products new products within 1 week\n" if ($args{v}); +print "info: $new_products new products (1 week)\n" if ($args{v}); my $vars = { num_vendors => $vendors, @@ -58,7 +58,7 @@ my $vars = { new_products => $new_products }; -$template->process("index.html", $vars, "index.html") || die $template->error(); +$template->process("index.html", $vars, "index.html") || die $template->error() . "\n"; copy("$include/pricechart.css", "$output/pricechart.css"); print "info: $include/pricechart.css -> $output/\n" if ($args{v});