aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral')
-rw-r--r--python/collateral/ms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/collateral/ms.py b/python/collateral/ms.py
index 794c4e02..3a6e1ea8 100644
--- a/python/collateral/ms.py
+++ b/python/collateral/ms.py
@@ -32,7 +32,7 @@ def download_files(em, count=20, *, fund="Serenitas", **kwargs):
fname = "Trade_Detail_FX_" + attach.name.split("_")[1]
elif "NET_Collateral" in attach.name:
fname = "Collateral_Detail_" + attach.name.rsplit("_", 1)[1]
- elif attach.name.endswith("pdf"):
+ elif "Statement" in attach.name and attach.name.endswith("pdf"):
ending = attach.name.rsplit("_", 1)[1]
fname = "Statement_" + ending.split(".")[0] + ".pdf"
else: