From ec379045cc343a5dc593b07776c626bca00f4a97 Mon Sep 17 00:00:00 2001 From: Ash Garcia Date: Sun, 11 Aug 2024 23:21:07 -0700 Subject: [PATCH] fix alias generation not using second part --- anonymize_entries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anonymize_entries.py b/anonymize_entries.py index ecab1aa..f6d5107 100644 --- a/anonymize_entries.py +++ b/anonymize_entries.py @@ -258,7 +258,7 @@ def maybe_generate_aliases( for row in csv_contents: rnd = Random(",".join([row[KnownColumns.EmailAddress], seed])) - random_alias = f"{rnd.choice(alias_parts[0])} {rnd.choice(alias_parts[0])}" + random_alias = f"{rnd.choice(alias_parts[0])} {rnd.choice(alias_parts[1])}" while ( random_alias in alias_to_email_address and alias_to_email_address[random_alias] != row[KnownColumns.EmailAddress]