aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-09-22 18:56:12 -0700
committerBryan Newbold <bnewbold@archive.org>2018-09-22 18:56:12 -0700
commit4de3a3bc5016d211ce2ea65af70343bd7ff5fa4c (patch)
tree060f50d5ba650df2a20486867d65ed29898f96c2
parent05fef2353045550657cb2e34f54b17b6dde3916c (diff)
downloadsandcrawler-4de3a3bc5016d211ce2ea65af70343bd7ff5fa4c.tar.gz
sandcrawler-4de3a3bc5016d211ce2ea65af70343bd7ff5fa4c.zip
fix sha1/doi_list confusion in filter_scored_matches
-rwxr-xr-xpython/filter_scored_matches.py4
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():