Mercurial > hg > cc > cirrus_home
changeset 151:66d17f7410f2
fixed
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 26 Oct 2021 14:07:34 +0000 |
parents | 4e1364b8c89a |
children | 0072e4ee6c67 |
files | bin/cdx2tsv.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)))