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 5c710920..60aabbdd 100644
--- a/python/load_intex_collateral.py
+++ b/python/load_intex_collateral.py
@@ -92,7 +92,7 @@ def upload_data(dealnames, workdate, conn, cursor):
pdb.set_trace()
data.append(r)
- cursor.execute( "select distinct(updatedate) from et_collateral where dealname='{0}'".format(dealname))
+ cursor.execute( "select distinct(updatedate) from et_collateral where dealname= %s", (dealname,))
old_update_dates = [date[0] for date in cursor.fetchall()]
deal_table = get_latest_dealupdate(workdate)