From 4de3a3bc5016d211ce2ea65af70343bd7ff5fa4c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 22 Sep 2018 18:56:12 -0700 Subject: fix sha1/doi_list confusion in filter_scored_matches --- python/filter_scored_matches.py | 4 ++-- 1 file 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(): -- cgit v1.2.3