set default serial to bitbrowser
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/contact_list_all.xlsx")
|
||||
_contacts_to_book = read_contacts(str(Path.home()) + "/Desktop/contact_list_2025-03-08_aol_400.xlsx")
|
||||
return _contacts_to_book
|
||||
|
||||
|
||||
@@ -94,7 +94,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-08"
|
||||
_collection_name = "2025-03-12"
|
||||
_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 = []
|
||||
@@ -232,17 +232,29 @@ def get_old_validated_contact_list(remove_blacklisted_contact=True, _day_in_str=
|
||||
|
||||
|
||||
# 把新的联系人存到网上
|
||||
def write_resident_card_number_to_contact_list(file_to_read, file_name="contact_list_all.xlsx"):
|
||||
_contacts_to_book = read_contacts(file_to_read)
|
||||
_all_contact_list = MONGO_STORE_MANAGER.get_all_contacts_to_book()
|
||||
for _contact in _contacts_to_book:
|
||||
for _real_contact in _all_contact_list:
|
||||
if _real_contact.mail == _contact.mail:
|
||||
_contact.resident_card_number = _real_contact.resident_card_number
|
||||
write_list_with_segment_number(file_name, _contacts_to_book, 1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
# write_resident_card_number_to_contact_list(file_to_read=str(Path.home()) + "/Desktop/contact_list_all_12.xlsx",
|
||||
# file_name="contact_list_all_12")
|
||||
# contacts_to_book = upload_contacts_list()
|
||||
# MONGO_STORE_MANAGER.upload_contact_list(contacts_to_book)
|
||||
# print("start at {}".format(datetime.datetime.now()))
|
||||
# generate_valid_contact_list_for_day(segment_number=2)
|
||||
generate_valid_contact_list_for_day(segment_number=2)
|
||||
# generate_contact_from_mail_list("/Users/lpan/Downloads/邮箱及密码_aol_400_08_03_2025.xlsx")
|
||||
# print("end at {}".format(datetime.datetime.now()))
|
||||
# update_contact_list_not_received_mail()
|
||||
# get_old_validated_contact_list()
|
||||
# print("end at {}".format(datetime.datetime.now()))
|
||||
generate_all_contact_list()
|
||||
# generate_all_contact_list()
|
||||
# merge_contact_list_files(
|
||||
# ["/Users/lpan/Desktop/contact_list_2024-11-04.xlsx",
|
||||
# "/Users/lpan/Desktop/contact_list_2024-11-07.xlsx",
|
||||
|
||||
Reference in New Issue
Block a user