aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 e6d170c5..c0a283f4 100644
--- a/python/load_intex_collateral.py
+++ b/python/load_intex_collateral.py
@@ -155,7 +155,7 @@ if __name__ == "__main__":
if len(sys.argv) > 2:
dealnames = sys.argv[2:]
else:
- dealnames = [d.split("_")[0].lower() for d in os.listdir(os.path.join(common.root, "data", "Collaterals_" + workdate))]
+ dealnames = [re.sub("_AD.txt", "", d).lower() for d in os.listdir(os.path.join(common.root, "data", "Collaterals_" + workdate))]
upload_data(dealnames, workdate, common.conn, common.cursor)
common.cursor.close()
common.conn.close()