logo       

cvs: pearweb /public_html package-stats.php: msg#00067

php.pear.core

Subject: cvs: pearweb /public_html package-stats.php

cellog Thu Oct 19 15:02:03 2006 UTC

Modified files:
/pearweb/public_html package-stats.php
Log:
fix per-category download stats so that downloads are not all 0

http://cvs.php.net/viewvc.cgi/pearweb/public_html/package-stats.php?r1=1.77&r2=1.78&diff_format=u
Index: pearweb/public_html/package-stats.php
diff -u pearweb/public_html/package-stats.php:1.77
pearweb/public_html/package-stats.php:1.78
--- pearweb/public_html/package-stats.php:1.77 Wed Oct 18 19:24:15 2006
+++ pearweb/public_html/package-stats.php Thu Oct 19 15:02:03 2006
@@ -16,7 +16,7 @@
| Authors: Martin Jansen <mj@xxxxxxx> |
| Richard Heyes <richard@xxxxxxx> |
+----------------------------------------------------------------------+
- $Id: package-stats.php,v 1.77 2006/10/18 19:24:15 cellog Exp $
+ $Id: package-stats.php,v 1.78 2006/10/19 15:02:03 cellog Exp $
*/

require_once 'HTML/Form.php';
@@ -318,7 +318,7 @@
$total_categories = $dbh->getOne(sprintf("SELECT COUNT(*) FROM
categories WHERE parent = %d", $_GET['cid']));

// Query to get package list from package_stats_table
- $query = sprintf("SELECT SUM(ps.dl_number), ps.package, ps.release,
ps.pid, ps.rid, ps.cid
+ $query = sprintf("SELECT SUM(ps.dl_number) AS dl_number, ps.package,
ps.release, ps.pid, ps.rid, ps.cid
FROM package_stats ps, packages p
WHERE p.package_type = 'pear' AND p.id = ps.pid AND
p.category = %s GROUP BY ps.pid ORDER BY ps.dl_number
DESC",



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise