Skip to content

Commit b08d895

Browse files
Altering the util to check the status of all subjects in a batch
1 parent b8e6001 commit b08d895

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/batch_processing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ def batch_processing(
7979

8080
check_batch_in_archived_batch_list(page, link_text)
8181

82-
first_nhs_no = nhs_no_df["subject_nhs_number"].iloc[0]
83-
verify_subject_event_status_by_nhs_no(page, first_nhs_no, latest_event_status)
82+
for subject in range(len(nhs_no_df)):
83+
nhs_no = nhs_no_df["subject_nhs_number"].iloc[subject]
84+
logging.info(f"Verifying the event status for subject: {nhs_no}")
85+
verify_subject_event_status_by_nhs_no(page, nhs_no, latest_event_status)
8486

8587
if run_timed_events:
8688
OracleDB().exec_bcss_timed_events(nhs_no_df)

0 commit comments

Comments
 (0)