diff options
author | Bryan Newbold <bnewbold@archive.org> | 2018-09-22 18:56:12 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2018-09-22 18:56:12 -0700 |
commit | 4de3a3bc5016d211ce2ea65af70343bd7ff5fa4c (patch) | |
tree | 060f50d5ba650df2a20486867d65ed29898f96c2 /python | |
parent | 05fef2353045550657cb2e34f54b17b6dde3916c (diff) | |
download | sandcrawler-4de3a3bc5016d211ce2ea65af70343bd7ff5fa4c.tar.gz sandcrawler-4de3a3bc5016d211ce2ea65af70343bd7ff5fa4c.zip |
fix sha1/doi_list confusion in filter_scored_matches
Diffstat (limited to 'python')
-rwxr-xr-x | python/filter_scored_matches.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/filter_scored_matches.py b/python/filter_scored_matches.py index 900374d..3654b87 100755 --- a/python/filter_scored_matches.py +++ b/python/filter_scored_matches.py @@ -89,8 +89,8 @@ def process_group(rows): l = keepers.get(sha1, list()) l.append(doi) keepers[sha1] = l - for value in keepers.values(): - print("{}\t{}".format(sha1, json.dumps(value))) + for sha1, doi_list in keepers.items(): + print("{}\t{}".format(sha1, json.dumps(doi_list))) def run(): |