diff --git a/src/person_name/extract_name_with_pinyinlist.py b/src/person_name/extract_name_with_pinyinlist.py index ad383c6..bc99c38 100644 --- a/src/person_name/extract_name_with_pinyinlist.py +++ b/src/person_name/extract_name_with_pinyinlist.py @@ -6,7 +6,7 @@ import xlsxwriter from src.db.mongo_manager import MongoDbManager from src.pojo.contact_pojo import ContactPojo -from src.utils.excel_reader import get_random_phone_numbers, ExcelHelper +from src.utils.excel_reader import get_random_fr_phone_numbers, ExcelHelper from src.utils.generate_random_passport_id import get_random_passport_id_number @@ -174,7 +174,7 @@ def write_new_contacts_to_excel(valid_contacts: list): worksheet.write(row, col_num, data, header_format) row = row + 1 for info in valid_contacts: - info.phone = get_random_phone_numbers() + info.phone = get_random_fr_phone_numbers() info.passport = get_random_passport_id_number() # Iterate over the data and write it out row by row. worksheet.write(row, col, "{} {}".format(info.last_name, info.first_name)) @@ -203,7 +203,7 @@ def generate_contact_from_mail_list(): # mail_list = db_manager.get_destination_emails()[3001:3200] # mail_list = db_manager.get_destination_emails()[7570:7590] excel_reader = ExcelHelper() - mail_list = excel_reader.read_mails_and_pwd(file_name="/Users/lpan/Desktop/mails/163_list_60.xlsx") + mail_list = excel_reader.read_mails_and_pwd(file_name="/Users/lpan/Desktop/mails/gmail_19_05.xlsx") generate_contacts = [] pinyin_name_list = read_pinyin_list_from_file() random.shuffle(pinyin_name_list)