aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/strat_cash_realloc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/strat_cash_realloc.py b/python/strat_cash_realloc.py
index 2683133f..e5f7c8df 100644
--- a/python/strat_cash_realloc.py
+++ b/python/strat_cash_realloc.py
@@ -14,7 +14,7 @@ def generate_csv(date, conn):
(date,),
)
for row in c:
- if row.strat not in CASH_STRATEGY_MAPPING.keys():
+ if row.strat not in CASH_STRATEGY_MAPPING:
d.execute(
"INSERT INTO strat_cash_realloc (portfolio, folder, trade_date, amount, currency, fund, cash_account) VALUES (%s, %s, %s, %s, %s, %s, %s) RETURNING dealid",
(
@@ -63,7 +63,7 @@ def generate_csv(date, conn):
conn.commit()
if bowdst.staging_queue:
buf, dest = bowdst.build_buffer("wire")
- bowdst.upload(buf, dest)
+ bowdst.upload(buf, dest.name)
if __name__ == "__main__":