Mercurial > hg > cc > azure
changeset 36:9d4f130073b8
merge the uploaded results of fixAndMerge
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 29 Nov 2018 13:41:27 +0000 |
parents | 1b6bcc54268d |
children | 93de42761f9c |
files | master/bin/finalMerge.py |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/master/bin/finalMerge.py Thu Nov 29 13:41:27 2018 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 +import sys,re +mh={} +ms={} +for l in sys.stdin: + (h,m,y,c)=l.split() + if h=='http': + tab=mh + else: + tab=ms + key='%s\t%s'%(m,y) + tab[key]=tab.get(key,0)+int(c) +for (l,tab) in zip(['http','https'],[mh,ms]): + for k in sorted(tab.keys()): + print(l,k,tab[k],sep='\t')