aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/citco_ops/.vscode/settings.json4
-rw-r--r--python/citco_ops/cash.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/python/citco_ops/.vscode/settings.json b/python/citco_ops/.vscode/settings.json
new file mode 100644
index 00000000..cc67606f
--- /dev/null
+++ b/python/citco_ops/.vscode/settings.json
@@ -0,0 +1,4 @@
+{
+ "python.linting.pylintEnabled": true,
+ "python.linting.enabled": true
+} \ No newline at end of file
diff --git a/python/citco_ops/cash.py b/python/citco_ops/cash.py
index 8c47744f..d76e5426 100644
--- a/python/citco_ops/cash.py
+++ b/python/citco_ops/cash.py
@@ -62,8 +62,10 @@ class CashReport:
dest = (
DAILY_DIR
/ str(message_date)
+ / "Reports"
/ f"{message_date:%Y%m%d}_ISOSEL.csv"
)
+ dest.parent.mkdir(exist_ok=True, parents=True)
with attach.fp as fp, dest.open("w") as csvfh:
plaintext, result, verify_result = gpg.Context().decrypt(
fp.read(), passphrase="Serenitas1", sink=csvfh