Spaces:
Running
Running
Commit
·
eda6ed8
1
Parent(s):
8c163ee
Should now correctly allow for ref files without additional merge columns
Browse files- tools/preparation.py +2 -1
tools/preparation.py
CHANGED
@@ -169,7 +169,8 @@ def prepare_ref_address(ref_df, ref_address_cols, new_join_col = [], standard_co
|
|
169 |
|
170 |
ref_address_cols_uprn = ref_address_cols.copy()
|
171 |
|
172 |
-
ref_address_cols_uprn.extend(new_join_col)
|
|
|
173 |
ref_address_cols_uprn_w_ref = ref_address_cols_uprn.copy()
|
174 |
ref_address_cols_uprn_w_ref.extend(["Reference file"])
|
175 |
|
|
|
169 |
|
170 |
ref_address_cols_uprn = ref_address_cols.copy()
|
171 |
|
172 |
+
if new_join_col: ref_address_cols_uprn.extend(new_join_col)
|
173 |
+
|
174 |
ref_address_cols_uprn_w_ref = ref_address_cols_uprn.copy()
|
175 |
ref_address_cols_uprn_w_ref.extend(["Reference file"])
|
176 |
|