aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/report_ops/__main__.py5
-rw-r--r--python/report_ops/admin.py5
2 files changed, 7 insertions, 3 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index 8082aeeb..513683d5 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -86,7 +86,10 @@ if args.cash_reports:
logger.warning(e)
if args.isosel_reports:
- for fund in ("ISOSEL",):
+ for fund in (
+ "ISOSEL",
+ "CRSE",
+ ):
for report in ("isosel_accrued", "citco_reports"):
try:
report = CitcoReport[report](cob, fund)
diff --git a/python/report_ops/admin.py b/python/report_ops/admin.py
index 1f4f9314..e1cf56d6 100644
--- a/python/report_ops/admin.py
+++ b/python/report_ops/admin.py
@@ -38,6 +38,7 @@ class CitcoReport:
def __post_init__(self):
self._sftp = SftpClient.from_creds("citco", folder="outgoing")
+ self.file_prefix = self.file_prefix.format(fund=self.fund)
if not self.report_file_name:
raise ValueError(f"No reports for {self.table} on {self.date}")
self.knowledge_date = datetime.datetime.combine(
@@ -91,7 +92,7 @@ class CitcoReport:
class AccruedReport(
CitcoReport,
table="isosel_accrued",
- file_prefix="100502500_INNOCAP_ISOSEL_",
+ file_prefix="100502500_INNOCAP_{fund}_",
date_cols=[
"Init Date",
"Init Settle Date",
@@ -112,7 +113,7 @@ class AccruedReport(
class AllReport(
CitcoReport,
table="citco_reports",
- file_prefix="SPOS4X_INNOCAP_ISOSEL_D_IM.",
+ file_prefix="SPOS4X_INNOCAP_{fund}_D_IM.",
date_cols=["Maturity Date"],
dtkey="%Y%m%d.%H%M%S",
):