aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops')
-rw-r--r--python/report_ops/__main__.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index a2f501e6..0345a049 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -5,8 +5,7 @@ import logging
import argparse
import datetime
from .sma import (
- IsoselSMA,
- BowdstSMA,
+ SMA,
PositionReport,
BondPosition,
FuturePosition,
@@ -70,11 +69,8 @@ args = parser.parse_args()
cob = date = prev_business_day(args.date)
if args.sma_positions:
- for sma_cls in (
- IsoselSMA,
- BowdstSMA,
- ):
- sma = sma_cls(cob)
+ for fund in ("BOWDST", "ISOSEL", "BRINKER"):
+ sma = SMA[fund](cob)
try:
sma.email_positions()
except ValueError as e: