Skip to content

Commit 857d7be

Browse files
committed
[NRL-1606] Switch report attributes list from tenery to if
1 parent 8910f69 commit 857d7be

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

reports/get_pointer_masterids_for_custodian.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ def _get_masterids_for_custodians(table_name: str, custodians: str | tuple[str])
2626
f"Getting masterids for custodians {custodian_list} in table {table_name}...."
2727
)
2828

29-
required_attributes = (
30-
["id", "type_id", "master_identifier", "custodian"]
31-
if not INCLUDE_PATIENT_IDS
32-
else ["id", "type_id", "master_identifier", "custodian", "nhs_number"]
33-
)
29+
required_attributes = ["id", "type_id", "master_identifier", "custodian"]
30+
if INCLUDE_PATIENT_IDS:
31+
required_attributes.append("nhs_number")
3432

3533
expression_names_str = ",".join(
3634
[f":param{custodian}" for custodian in custodian_list]

0 commit comments

Comments
 (0)