[Collab-qa-commits] r1111 - udd/src/udd
lucas at alioth.debian.org
lucas at alioth.debian.org
Sun Aug 17 13:04:16 UTC 2008
Author: lucas
Date: 2008-08-17 13:04:15 +0000 (Sun, 17 Aug 2008)
New Revision: 1111
Modified:
udd/src/udd/popcon_gatherer.py
Log:
use of my_config for popcon_src
Modified: udd/src/udd/popcon_gatherer.py
===================================================================
--- udd/src/udd/popcon_gatherer.py 2008-08-17 13:02:43 UTC (rev 1110)
+++ udd/src/udd/popcon_gatherer.py 2008-08-17 13:04:15 UTC (rev 1111)
@@ -74,19 +74,19 @@
#calculate _src and _src_avg
cur.execute("""
- INSERT INTO %s SELECT DISTINCT packages.source, max(insts) AS insts, max(vote) AS vote, max(olde) AS old,
+ INSERT INTO %(table)s_src SELECT DISTINCT pkgs.source, max(insts) AS insts, max(vote) AS vote, max(olde) AS old,
max(recent) AS recent, max(nofiles) as nofiles
FROM %(table)s, %(packages-table)s_summary AS pkgs
WHERE %(table)s.package = pkgs.package
GROUP BY pkgs.source;
- """ % (table_src, my_config))
+ """ % my_config)
cur.execute("""
- INSERT INTO %s SELECT packages.source, avg(insts) AS insts, avg(vote) AS vote, avg(olde) AS old,
+ INSERT INTO %(table)s_src_average SELECT pkgs.source, avg(insts) AS insts, avg(vote) AS vote, avg(olde) AS old,
avg(recent) AS recent, avg(nofiles) as nofiles
FROM %(table)s, %(packages-table)s_summary AS pkgs
WHERE %(table)s.package = pkgs.package
GROUP BY pkgs.source;
- """ % (table_src_average, my_config))
+ """ % my_config)
if __name__ == '__main__':
main()
More information about the Collab-qa-commits
mailing list