Fixed an issue with saving accounts data

This commit is contained in:
Jake
2025-02-08 13:59:21 +00:00
parent 2b60d6af10
commit d155a4c907
3 changed files with 37 additions and 30 deletions
+1
View File
@@ -8,3 +8,4 @@ __pycache__/*
*/__pycache__/*
*.pbix
/logs/*
test.py
+6
View File
@@ -68,6 +68,12 @@ Then move the files back in one at a time oldest to newest and run again for eac
return False
modified_data = self._add_ingestion_date(entity, data, file_name)
for index, record in enumerate(modified_data):
logging.debug(f"processing record: {record}")
filtered_record = {k: v for k, v in record.items() if not k.startswith('debt_')}
modified_data[index] = filtered_record
logging.debug(f"filtered record: {filtered_record}")
logging.debug(f"modified data: {modified_data}")
self.data[entity].append(modified_data)
logging.debug(f"Successfully loaded data from file: {file_path}")