We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed8209 commit 56877d6Copy full SHA for 56877d6
bin/similarity_ranking.py
@@ -163,10 +163,10 @@ def main():
163
all_submissions.sort(reverse=True)
164
165
# A set of all the users we've written lines for thus far (duplicates aren't allowed)
166
- users_written = set('foo')
+ users_written = set()
167
with open(Path(args.basepath, 'overall_ranking.txt'), 'w') as ranking_file:
168
for s in all_submissions:
169
- if s.user_id in users_written:
+ if s.user_id in users_written or s.total_hashes_matched == 0:
170
continue
171
ranking_file.write(f"{s.user_id:10} {s.version:3} "
172
f"{s.percent_match:4.0%} {s.total_hashes_matched:>8}\n")
0 commit comments