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]