]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_apachelogs2subscriptionstats
Also for stats report which repo and which job number use our setup
[neurodebian.git] / tools / nd_apachelogs2subscriptionstats
index 3b567476f438e9923a23d97e88556edf463e56d5..a2a3f469ce897a689835b099f62b9cdd16b99697 100755 (executable)
@@ -29,6 +29,7 @@ releases = {
     'quantal': 'Ubuntu 12.10 "Quantal Quetzal" (quantal)',
     'raring': 'Ubuntu 13.04 "Raring Ringtail" (raring)',
     'saucy': 'Ubuntu 13.10 "Saucy Salamander" (saucy)',
+    'trusty': 'Ubuntu 14.04 "Trusty Tahr" (trusty)',
 }
 
 
@@ -62,7 +63,7 @@ if __name__ == '__main__':
     # determine the union of all timestamps
     timestamps = set()
     for codename, stats in data.iteritems():
-        timestamps.union_update(stats.keys())
+        timestamps.update(stats.keys())
     export = [{'key': release,
                'values': [[ts, float(data[release].setdefault(ts, 0)) / 7]
                         for ts in sorted(timestamps)]}