local changes for check results

This commit is contained in:
Lei PAN
2022-06-04 09:57:08 +02:00
parent e925945300
commit 64ff15bf4d
+2 -2
View File
@@ -123,10 +123,10 @@ if __name__ == '__main__':
reserve_pojo = ReserveResultPojo.from_firestore_dict(appointment.to_dict())
result_list.append(reserve_pojo)
with ThreadPoolExecutor(max_workers=25) as executor:
with ThreadPoolExecutor(max_workers=10) 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.ACCEPTED.value == reserve.accepted:
if reserve.url != BLANK_URL:
executor.submit(ResultChecker().run, reserve, collection)
else: