Skip to content

Commit 93880d9

Browse files
committed
log date of duplicate records removed
1 parent 99cf02b commit 93880d9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/connectors/wqp/source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ def _clean_records(self, records):
164164
raise ValueError(
165165
f"Multiple TDS records found for {site_id} with ActivityIdentifier {activity_identifier} but no 70300, 70301, or 70303 pcodes found."
166166
)
167+
record_date = kept_record["ActivityStartDate"]
167168
self.log(
168-
f"Removing duplicates for {site_id} with ActivityIdentifier {activity_identifier}. Keeping record with pcode {pcode}."
169+
f"Removing duplicates for {site_id} on {record_date} with ActivityIdentifier {activity_identifier}. Keeping record with pcode {pcode}."
169170
)
170171
else:
171172
kept_record = list(ai_records.values())[0]

0 commit comments

Comments
 (0)