break when the get_csrf is blocked
This commit is contained in:
+6
-3
@@ -33,7 +33,7 @@ def filter_contacts(_contact_list: list) -> list:
|
||||
for booked in already_sent_contacts:
|
||||
if contact.mail == booked.email:
|
||||
_to_add = False
|
||||
#如果已经收到链接了,就不要再请求
|
||||
# 如果已经收到链接了,就不要再请求
|
||||
for link_to_validate in _link_to_validate_list:
|
||||
if contact.mail == link_to_validate.email:
|
||||
logger.info("{}: link already received".format(contact.mail))
|
||||
@@ -69,11 +69,14 @@ def send_appointment_request(message_queue_name, _contact_list):
|
||||
receiver.run()
|
||||
|
||||
|
||||
def start(contact_list_file):
|
||||
pass
|
||||
|
||||
if __name__ == '__main__':
|
||||
contacts_file_path = '~/Desktop/contact_list_2024-03-23.xlsx'
|
||||
contacts_file_path = '~/Desktop/contact_list_2024-04-05-2.xlsx'
|
||||
_contact_list = read_contacts(contacts_file_path)
|
||||
_contact_list_to_book = filter_contacts(_contact_list)
|
||||
_segment_number = 5
|
||||
_segment_number = 10
|
||||
logger.info("{} contacts to book".format(len(_contact_list_to_book)))
|
||||
last_thread = None
|
||||
for i in range(0, _segment_number):
|
||||
|
||||
Reference in New Issue
Block a user