From 05eb94f2f94b6fe91ad7b844c0b764959a77fdd9 Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Fri, 3 Jun 2022 10:11:29 +0200 Subject: [PATCH] add some logs in chinese --- check_results.py | 4 ++-- workers/commandor_page.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check_results.py b/check_results.py index da5e89c..07dbfd5 100644 --- a/check_results.py +++ b/check_results.py @@ -21,7 +21,7 @@ PENDING_SENTENCE_EN = "This evening between 20:00 and 20:30 you will receive a r class TlsPlaywright(threading.local): def __init__(self) -> None: self.playwright = sync_playwright().start() - print("Create playwright instance in Thread", threading.current_thread().name) + print("创建浏览器实例,线程: ", threading.current_thread().name) class ResultChecker: @@ -116,7 +116,7 @@ if __name__ == '__main__': reserve_pojo = ReserveResultPojo.from_firestore_dict(appointment.to_dict()) result_list.append(reserve_pojo) - with ThreadPoolExecutor(max_workers=5) as executor: + with ThreadPoolExecutor(max_workers=25) as executor: for reserve in result_list: count = count + 1 if reserve.accepted is None or ResultEnum.ACCEPTED.value == reserve.accepted: diff --git a/workers/commandor_page.py b/workers/commandor_page.py index 1cb8c80..71ca404 100644 --- a/workers/commandor_page.py +++ b/workers/commandor_page.py @@ -125,7 +125,7 @@ class CommandorPage: def fill_fields(self): if not self.is_filling_fields: self.is_filling_fields = True - self.logger.info("will call fill_fields for " + str(self.contact.phone)) + self.logger.info("填充信息: " + str(self.contact.phone)) self._set_name(self.contact.last_name, self.contact.first_name) self._setPhoneCountryAndStore() self._setPhoneNumber(self.contact.phone)