From 75ecc058ecac02dd263b39d1c15cad89219e192b Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Fri, 9 Aug 2024 19:09:29 -0500 Subject: [PATCH] fix: ensure no duplicate items --- bin/update_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update_tracker.py b/bin/update_tracker.py index 009dd15..674dbfa 100755 --- a/bin/update_tracker.py +++ b/bin/update_tracker.py @@ -47,7 +47,7 @@ if __name__ == "__main__": torrent_infohashes.append(torrent.get("hash")) # type: ignore # Format the infohashes to have a \n at the end - format_infohashes = [f"{infohash}\n" for infohash in torrent_infohashes] + format_infohashes = set([f"{infohash}\n" for infohash in torrent_infohashes]) # Create a NamedTemporaryFile and write all infohashes to it, one per line with tempfile.NamedTemporaryFile() as ntf: