aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/process_queue.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/process_queue.py b/python/process_queue.py
index 152aaa3d..c4c1ff9e 100644
--- a/python/process_queue.py
+++ b/python/process_queue.py
@@ -110,15 +110,13 @@ def terminate_list(
return
for k, v in term_dict.items():
- if v:
+ if v and upload:
dest = get_filepath(base_dir, (trade_type, k), fund)
buf = StringIO()
csvwriter = csv.DictWriter(buf, get_termination_headers(trade_type, k))
csvwriter.writeheader()
csvwriter.writerows(v)
buf = buf.getvalue().encode()
-
- if upload:
upload_buf(buf, dest.name, fund, trade_type)
dest.parent.mkdir(exist_ok=True)
dest.write_bytes(buf)