aboutsummaryrefslogtreecommitdiffstats
path: root/python/strat_cash_realloc.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/strat_cash_realloc.py')
-rw-r--r--python/strat_cash_realloc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/strat_cash_realloc.py b/python/strat_cash_realloc.py
index 5a670ba3..e4530471 100644
--- a/python/strat_cash_realloc.py
+++ b/python/strat_cash_realloc.py
@@ -18,6 +18,8 @@ def generate_csv(date, conn, fund="BOWDST"):
),
)
(count,) = c.fetchone()
+ if count > 0:
+ return
c.execute(
"SELECT * FROM list_orphaned_cash(%s, %s) ",
(