remove unused code

This commit is contained in:
2023-01-04 10:53:27 +01:00
parent 22ef7707c4
commit bfd54c1f1f
2 changed files with 16 additions and 8 deletions
+15 -6
View File
@@ -9,14 +9,23 @@ api_key = "489274f04d5c155f81370fccc3904e20"
api_secret = "edac41f0e1726ba49808dfb12204ecd6" api_secret = "edac41f0e1726ba49808dfb12204ecd6"
mailjet = Client(auth=(api_key, api_secret), version='v3.1') mailjet = Client(auth=(api_key, api_secret), version='v3.1')
from_email = "no-reply@lpaconsulting.fr" from_email = "no-reply@lpaconsulting.fr"
# store = "Hermès Paris Faubourg" store = "Hermès Paris Faubourg"
store = "Hermès Paris Sèvres"
# store = "Hermès Paris George V" # store = "Hermès Paris George V"
# dest_email = "0429xiaohan@gmail.com" #小萝卜 # store = "Hermès Paris Sèvres"
# dest_email = "1340219934@qq.com" #小于 # dest_email = "928490803@qq.com"
# dest_email = "1757344572@qq.com"
# dest_email = "392417782@qq.com"
# dest_email = "linghuili@hotmail.com" # dest_email = "linghuili@hotmail.com"
dest_email = "landdu@outlook.com" # dest_email = "fanfan19810617@icloud.com"
contact_name = "LI Jiaxi" # dest_email = "fanchunying323@163.com"
# dest_email = "lytlaure@gmail.com"
# dest_email = "panleicim@gmail.com"
# dest_email = "sunrose75015@gmail.com"
dest_email = "1340219934@qq.com"
# dest_email = "lytlaure@gmail.com"
# dest_email = "m13805869912@163.com"
# dest_email = "tangliang0411@gmail.com"
contact_name = "DU Peijian"
f = open(config.ROOT_DIR + "/templates/confirmed_rdv.html", "r") f = open(config.ROOT_DIR + "/templates/confirmed_rdv.html", "r")
email_body = f.read() email_body = f.read()
+1 -2
View File
@@ -97,7 +97,7 @@ class CommandorPage:
self.otp_value = None self.otp_value = None
# device = None # device = None
device_key = random.choice(params.DEVICES) device_key = random.choice(params.DEVICES)
device_key = random.sample(list(self.tls.playwright.devices), 1)[0] # device_key = random.sample(list(self.tls.playwright.devices), 1)[0]
device = self.tls.playwright.devices[device_key] device = self.tls.playwright.devices[device_key]
# while device is None: # while device is None:
# device_key = random.sample(list(self.tls.playwright.devices), 1)[0] # device_key = random.sample(list(self.tls.playwright.devices), 1)[0]
@@ -417,7 +417,6 @@ class CommandorPage:
def handle_captcha_error(self): def handle_captcha_error(self):
MONGO_STORE_MANAGER.insert_captcha_error_contact(self.contact) MONGO_STORE_MANAGER.insert_captcha_error_contact(self.contact)
params.oracle_log_sender.send_captcha_error(self.contact)
def check_is_blocked(self) -> bool: def check_is_blocked(self) -> bool:
iframe = self.page.query_selector('iframe').content_frame() iframe = self.page.query_selector('iframe').content_frame()