aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/strat_cash_realloc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/strat_cash_realloc.py b/python/strat_cash_realloc.py
index 95e05e2d..af3a20f8 100644
--- a/python/strat_cash_realloc.py
+++ b/python/strat_cash_realloc.py
@@ -15,7 +15,7 @@ def generate_csv(date, fund="BOWDST"):
fund,
),
)
- if c.fetchone() is None:
+ if c.fetchone():
return
c.execute(
"SELECT * FROM list_orphaned_cash(%s, %s) ",
@@ -34,9 +34,9 @@ def generate_csv(date, fund="BOWDST"):
offset.stage()
for wire in WireDeal.commit(returning=True):
Bowdst.staging_queue.append(wire.to_globeop("NEW"))
- buf, dest = Bowdst.build_buffer("wire")
- Bowdst.upload(buf, dest.name)
- Bowdst().clear()
+ buf, dest = Bowdst.build_buffer("wire")
+ Bowdst.upload(buf, dest.name)
+ Bowdst().clear()
if __name__ == "__main__":