[Collab-qa-commits] r1533 - udd/web/cgi-bin
Lucas Nussbaum
lucas at alioth.debian.org
Fri Jul 24 10:31:32 UTC 2009
Author: lucas
Date: 2009-07-24 10:31:32 +0000 (Fri, 24 Jul 2009)
New Revision: 1533
Modified:
udd/web/cgi-bin/orphaned_packages.cgi
Log:
orphaned_packages.cgi improvements
Modified: udd/web/cgi-bin/orphaned_packages.cgi
===================================================================
--- udd/web/cgi-bin/orphaned_packages.cgi 2009-07-24 10:30:54 UTC (rev 1532)
+++ udd/web/cgi-bin/orphaned_packages.cgi 2009-07-24 10:31:32 UTC (rev 1533)
@@ -8,13 +8,15 @@
puts "<html><body>"
sth = dbh.prepare("select sources.source, insts, date(op.orphaned_time), op.type, op.bug
-from sources, popcon_src, orphaned_packages op
+from sources, popcon_src, orphaned_packages op, bugs b
where sources.source = popcon_src.source
and distribution = 'debian' and release = 'sid'
and sources.source = op.source
+and b.id = op.bug
and op.type in ('O', 'ITA')
-and insts < 1000
-and date(op.orphaned_time) < '2007-01-01'")
+and insts < 500
+and date(op.orphaned_time) < '2008-07-24'
+and date(b.last_modified) < '2008-07-24'")
sth.execute
puts "<table>"
sth.fetch_all.each do |r|
More information about the Collab-qa-commits
mailing list