aboutsummaryrefslogtreecommitdiffstats
path: root/python/load_refentity.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/load_refentity.py')
-rw-r--r--python/load_refentity.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/load_refentity.py b/python/load_refentity.py
index f5c998c8..4b3e2864 100644
--- a/python/load_refentity.py
+++ b/python/load_refentity.py
@@ -112,7 +112,8 @@ if __name__ == "__main__":
from markit_red import download_report
base_dir = Path('/home/serenitas/CorpCDOs/Tranche_data/RED_reports/Deltas')
for report in ['REDEntityDelta', 'REDObligationDelta']:
- f = base_dir / download_report(report)[0]
+ g = download_report(report)
+ f = base_dir / next(g)[0]
if "Entity" in report:
insert_refentity(f.as_posix())
else: