From 2e32deacd0a1d5793b2c64688564d46a300a5d61 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:52:32 +1300 Subject: [PATCH] improve speed of detect post vote manipulation detection - avoid duplicate checking #343 --- app/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/cli.py b/app/cli.py index 51a1efcd..9290ef6e 100644 --- a/app/cli.py +++ b/app/cli.py @@ -476,6 +476,7 @@ def register(app): current_user_upvotes = set(current_user_upvoted_posts + current_user_upvoted_replies) if len(current_user_upvotes) > 12: + print(i) for j in range(i + 1, len(all_user_ids)): other_user_id = all_user_ids[j] if jaccard_similarity(current_user_upvotes, other_user_id) >= 95: