Verified Commit 4a2b8400 authored by Paul Wise's avatar Paul Wise

Clarify that the vote, old, recent, no_files columns are from the popcon table

Fixes the broken popcon graphs due to some SQL errors:

ERROR:  column reference "vote" is ambiguous
ERROR:  column reference "old" is ambiguous
ERROR:  column reference "no_files" is ambiguous
parent eea16905
......@@ -117,7 +117,7 @@ foreach my $package (@packages) {
my $packagekey = $multi ? "$package " : "";
my ($fh, $file) = tempfile("popcon.XXXXXX", TMPDIR => 1, UNLINK => 1);
my $rows = $dbh->selectall_arrayref("select p.day, vote, old, recent, no_files, submissions from popcon_package pp join popcon p on (pp.id = p.package_id) join popcon_day pd on (pd.day = p.day) where package = ? and in_debian order by p.day", undef, $package);
my $rows = $dbh->selectall_arrayref("select p.day, p.vote, p.old, p.recent, p.no_files, submissions from popcon_package pp join popcon p on (pp.id = p.package_id) join popcon_day pd on (pd.day = p.day) where package = ? and in_debian order by p.day", undef, $package);
print $fh join (" ", @$_), "\n" foreach (@$rows);
my $lines = @$rows;
printf $fh "%s 0 0 0 0 0\n", strftime("%F", gmtime) unless ($lines > 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment