panlei is used by a mac
This commit is contained in:
@@ -18,7 +18,7 @@ DEFAULT_SERIAL_TO_IGNORE = ["47e7e36b", "bitbrowser"]
|
||||
|
||||
|
||||
def upload_contacts_list():
|
||||
_contacts_to_book = read_contacts(str(Path.home()) + "/Desktop/extracted_yahoo_contacts_129_24_03_win.xlsx")
|
||||
_contacts_to_book = read_contacts(str(Path.home()) + "/Desktop/real_name_contacts_500_27_03_25_fixed_mac.xlsx")
|
||||
return _contacts_to_book
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ def write_new_contacts_to_excel(valid_contacts: list, file_name=str(datetime.dat
|
||||
|
||||
|
||||
def generate_valid_contact_list_for_day(segment_number=1):
|
||||
_collection_name = "2025-03-27"
|
||||
_collection_name = "2025-03-31"
|
||||
_valid_contact_list = MONGO_STORE_MANAGER.get_all_successful_items_for_one_day(_collection_name)
|
||||
_all_contacts = MONGO_STORE_MANAGER.get_all_contacts_to_book()
|
||||
_contact_to_save = []
|
||||
@@ -152,7 +152,7 @@ def write_list_with_segment_number(file_name, _contact_to_save_list, segment_num
|
||||
_mac_list = []
|
||||
_win_list = []
|
||||
for _contact in _contact_to_save_list:
|
||||
if _contact.source_from == "rdv" or _contact.source_from == "lpan":
|
||||
if _contact.source_from == "rdv" or _contact.source_from == "lpan" or _contact.source_from == "panlei":
|
||||
_mac_list.append(_contact)
|
||||
else:
|
||||
_win_list.append(_contact)
|
||||
@@ -276,4 +276,4 @@ if __name__ == '__main__':
|
||||
# "/Users/lpan/Desktop/contact_list_2024-11-08.xlsx",
|
||||
# "/Users/lpan/Desktop/contact_list_2024-11-06.xlsx"
|
||||
# ])
|
||||
# fix_phone_number_format(str(Path.home()) + "/Desktop/real_name_contacts_292_win.xlsx")
|
||||
# fix_phone_number_format(str(Path.home()) + "/Desktop/contact_list_2025-03-29_mac.xlsx")
|
||||
|
||||
Reference in New Issue
Block a user