diff options
| -rw-r--r-- | python/clo_universe.py | 2 | ||||
| -rw-r--r-- | python/load_intex_collateral.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/clo_universe.py b/python/clo_universe.py index dea9adc2..d794ee2f 100644 --- a/python/clo_universe.py +++ b/python/clo_universe.py @@ -28,7 +28,7 @@ def upload_data(workdate, conn, cursor): dr = csv.DictReader(fh, dialect='excel-tab') data = [] for line in dr: - if line['Deal Name'] == 'Unknown Security': + if not line ['Deal Name'] or (line['Deal Name'] == 'Unknown Security'): continue if not line['Latest Update']: break diff --git a/python/load_intex_collateral.py b/python/load_intex_collateral.py index c913be41..416b4561 100644 --- a/python/load_intex_collateral.py +++ b/python/load_intex_collateral.py @@ -30,7 +30,7 @@ def get_latest_dealupdate(workdate): dr = csv.DictReader(fh, dialect='excel-tab') deal_table = {line['Deal,Tr/CUSIP/ISIN']: datetime.datetime.strptime(line['Latest Update'], '%b %d, %Y').date() \ - for line in dr if 'Paid' not in line['Latest Update']} + for line in dr if 'Paid' not in line['Latest Update'] and line['Latest Update']} return deal_table def upload_data(dealnames, workdate, conn, cursor): |
