From 93b5c9baf5710d5d5c3e864991171bbd72d6fe8a Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Tue, 7 May 2024 14:26:14 +0200 Subject: [PATCH] correction wording --- .../contacts/generate_contact_list_to_register.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/contacts/generate_contact_list_to_register.py b/src/utils/contacts/generate_contact_list_to_register.py index 413496f..c3b88d8 100644 --- a/src/utils/contacts/generate_contact_list_to_register.py +++ b/src/utils/contacts/generate_contact_list_to_register.py @@ -44,17 +44,17 @@ def write_new_contacts_to_register_to_excel(valid_contacts: list, file_name=str( worksheet.write(row, col_num, data, header_format) row = row + 1 for info in valid_contacts: - _choosed_address = random.choice(_address_list) - _password = "Rdv@{}".format(random.randint(20222021, 20222300)) + _chosen_address = random.choice(_address_list) + _password = "Rdv@{}".format(random.randint(20220021, 20223300)) # Iterate over the data and write it out row by row. worksheet.write(row, col, info.first_name) worksheet.write(row, col + 1, info.last_name) worksheet.write(row, col + 2, _password) worksheet.write(row, col + 3, info.mail) worksheet.write(row, col + 4, info.phone) - worksheet.write(row, col + 5, _choosed_address.address) - worksheet.write(row, col + 6, _choosed_address.city) - worksheet.write(row, col + 7, _choosed_address.zip_code) + worksheet.write(row, col + 5, _chosen_address.address) + worksheet.write(row, col + 6, _chosen_address.city) + worksheet.write(row, col + 7, _chosen_address.zip_code) row += 1 workbook.close()