check blank page in check_results.py
This commit is contained in:
+4
-2
@@ -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"
|
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 = "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."
|
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):
|
class TlsPlaywright(threading.local):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
@@ -119,7 +119,9 @@ if __name__ == '__main__':
|
|||||||
with ThreadPoolExecutor(max_workers=5) as executor:
|
with ThreadPoolExecutor(max_workers=5) as executor:
|
||||||
for reserve in result_list:
|
for reserve in result_list:
|
||||||
count = count + 1
|
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)
|
executor.submit(ResultChecker().run, reserve, collection)
|
||||||
else:
|
else:
|
||||||
print("status is " + reserve.accepted)
|
print("status is " + reserve.accepted)
|
||||||
|
|||||||
Reference in New Issue
Block a user