# HG changeset patch # User Henry S. Thompson # Date 1635257254 0 # Node ID 66d17f7410f2e1c333c99635a6cc4faadaa50555 # Parent 4e1364b8c89ad479fd334be27c645eba5c3d72ea fixed diff -r 4e1364b8c89a -r 66d17f7410f2 bin/cdx2tsv.py --- a/bin/cdx2tsv.py Tue Oct 26 14:05:35 2021 +0000 +++ b/bin/cdx2tsv.py Tue Oct 26 14:07:34 2021 +0000 @@ -31,6 +31,7 @@ for l in sys.stdin: (key,stamp,jj)=l.rstrip().split(' ',maxsplit=2) ja=json.loads(jj) + #print(ja) print('\t'.join((ja.get(f,'NA') if isinstance(f,str) else - ((f[1](ja[f[0]]) if f[0] in ja else 'NA'))) for f in (ja.keys() if fields==["*"] else fields))) + (f[1](ja[f[0]] if f[0] in ja else 'NA'))) for f in (ja.keys() if fields==["*"] else fields)))