correction wording
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user