check blank page in check_results.py

This commit is contained in:
Lei PAN
2022-05-24 21:51:55 +02:00
parent 2839dac6ef
commit ae01db56fe
+4 -2
View File
@@ -16,7 +16,7 @@ SORRY_SENTENCE_EN = "we are extremely sorry that we were not able to fulfill"
NOT_AVAILABLE_CONTENT = "For more than 130 years, our House has offered its full expertise to satisfy"
PENDING_SENTENCE = "Ce soir, entre 20:00 et 20:30, vous obtiendrez une réponse par e-mail."
PENDING_SENTENCE_EN = "This evening between 20:00 and 20:30 you will receive a response by email."
BLANK_URL = "about:blank"
class TlsPlaywright(threading.local):
def __init__(self) -> None:
@@ -119,7 +119,9 @@ if __name__ == '__main__':
with ThreadPoolExecutor(max_workers=5) as executor:
for reserve in result_list:
count = count + 1
if reserve.accepted is None or ResultEnum.PENDING.value == reserve.accepted:
if reserve.accepted is None:
# or ResultEnum.PENDING.value == reserve.accepted:
if reserve.url != BLANK_URL:
executor.submit(ResultChecker().run, reserve, collection)
else:
print("status is " + reserve.accepted)