aboutsummaryrefslogtreecommitdiffstats
path: root/python/load_intex_collateral.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/load_intex_collateral.py')
-rw-r--r--python/load_intex_collateral.py2
1 files changed, 1 insertions, 1 deletions
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):