diff --git a/check_results.py b/check_results.py index 67d61fd..104b74f 100644 --- a/check_results.py +++ b/check_results.py @@ -116,11 +116,10 @@ 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=20) 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: