diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index 6cfae7d..b0bfffc 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -416,7 +416,7 @@ def photo_review(pk_phhd): elif phrec.cRectype == "4": cost_list.append(phrec) - with concurrent.futures.ThreadPoolExecutor as executor: + with concurrent.futures.ThreadPoolExecutor() as executor: executor.submit(settlement_task, pk_phhd, settlement_list) executor.submit(discharge_task, pk_phhd, discharge_record) # executor.submit(settlement_and_discharge_task, pk_phhd, settlement_list, discharge_record)