[Collab-qa-commits] r1549 - in udd/web: . cgi-bin
Lucas Nussbaum
lucas at alioth.debian.org
Thu Jul 30 00:16:54 UTC 2009
Author: lucas
Date: 2009-07-30 00:16:53 +0000 (Thu, 30 Jul 2009)
New Revision: 1549
Modified:
udd/web/cgi-bin/nmu_stats.cgi
udd/web/cgi-bin/sponsorstats.cgi
udd/web/index.html
Log:
update cgis because of changes to upload-history
Modified: udd/web/cgi-bin/nmu_stats.cgi
===================================================================
--- udd/web/cgi-bin/nmu_stats.cgi 2009-07-30 00:16:18 UTC (rev 1548)
+++ udd/web/cgi-bin/nmu_stats.cgi 2009-07-30 00:16:53 UTC (rev 1549)
@@ -9,7 +9,7 @@
sth = dbh.prepare("select changed_by, count(*) cnt from
upload_history uh, sources s
where s.distribution='debian' and s.release='sid'
-and s.source = uh.package and s.version = uh.version
+and s.source = uh.source and s.version = uh.version
and uh.nmu
and uh.date > current_timestamp - interval '2 months'
group by changed_by having count(*) >= 2 order by cnt desc")
@@ -26,7 +26,7 @@
sth = dbh.prepare("select changed_by, count(*) cnt from
upload_history uh, sources s
where s.distribution='debian' and s.release='sid'
-and s.source = uh.package and s.version = uh.version
+and s.source = uh.source and s.version = uh.version
and uh.nmu
group by changed_by order by cnt desc")
sth.execute ; rows = sth.fetch_all
Modified: udd/web/cgi-bin/sponsorstats.cgi
===================================================================
--- udd/web/cgi-bin/sponsorstats.cgi 2009-07-30 00:16:18 UTC (rev 1548)
+++ udd/web/cgi-bin/sponsorstats.cgi 2009-07-30 00:16:53 UTC (rev 1549)
@@ -8,10 +8,10 @@
sth = dbh.prepare("select s.source, s.version, u.changed_by, nmu, signed_by, cl.login
from sources s, upload_history u, carnivore_emails ce1, carnivore_emails ce2, carnivore_login cl
where s.distribution = 'debian' and s.release = 'sid'
-and s.source = u.package
+and s.source = u.source
and s.version = u.version
-and substring(u.changed_by from '<(.*)>') = ce1.email
-and substring(u.signed_by from '<(.*)>') = ce2.email
+and u.changed_by_email = ce1.email
+and u.signed_by_email = ce2.email
and ce1.id != ce2.id
and ce2.id = cl.id")
sth.execute
Modified: udd/web/index.html
===================================================================
--- udd/web/index.html 2009-07-30 00:16:18 UTC (rev 1548)
+++ udd/web/index.html 2009-07-30 00:16:53 UTC (rev 1549)
@@ -65,6 +65,6 @@
</a>
</li>
</ul>
-<p>A full dump of the database, generated every two days, is <a href="udd.sql.gz">also available</a>. Be careful, it's quite big (~300 MB gzipped).</p>
+<p>A full dump of the database, generated every two days, is <a href="udd.sql.gz">also available</a>. Be careful, it's quite big (~800 MB gzipped).</p>
</body>
</html>
More information about the Collab-qa-commits
mailing list