aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/reallocate_cash.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/reallocate_cash.py b/python/reallocate_cash.py
index 95c26179..26bedb91 100644
--- a/python/reallocate_cash.py
+++ b/python/reallocate_cash.py
@@ -149,7 +149,11 @@ with conn.cursor() as c:
csvwriter.writerow(columns)
csvwriter.writerows(csv_data)
buf = buf.getvalue().encode()
- dest = DAILY_DIR / f"Bowdst.ALL.{datetime.datetime.now():%Y%m%d.%H%M%S}.IamDeal.csv"
+ dest = (
+ DAILY_DIR
+ / str(datetime.date.today())
+ / f"Bowdst.ALL.{datetime.datetime.now():%Y%m%d.%H%M%S}.IamDeal.csv"
+ )
dest.write_bytes(buf)
sftp = SftpClient.from_creds("hm_globeop")
sftp.client.chdir("incoming")