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 49990155..df01f650 100644
--- a/python/load_intex_collateral.py
+++ b/python/load_intex_collateral.py
@@ -65,12 +65,12 @@ def upload_data(workdate, conn, cursor):
for field in ['Spread', 'Gross Coupon', 'Market Price', 'Contributed Balance']:
if line[field]:
line[field] = sanitize_float(line[field])
- r = [convertToNone(line[field]) for field in fields]
#we store the Libor FLoor in the database, so Life Floor is really Libor Floor
if line['Life Floor'] == "No limit":
line['Life Floor'] = 0
elif line['Life Floor']:
line['Life Floor'] = float(line['Life Floor']) - float(line['Spread'])
+ r = [convertToNone(line[field]) for field in fields]
data.append(r)
cursor.execute( "select distinct(updatedate) from et_collateral where dealname='{0}'".format(dealname))