diff --git a/check_results.py b/check_results.py index 3cfae99..67d61fd 100644 --- a/check_results.py +++ b/check_results.py @@ -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,8 +119,10 @@ 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: - executor.submit(ResultChecker().run, reserve, collection) + 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)