Skip to content

Commit e86200e

Browse files
committed
expose stopByPre
1 parent b285098 commit e86200e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

absbox/local/component.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2568,8 +2568,10 @@ def mkCallOptions(x):
25682568
def mkNonPerfAssumps(r, xs:list) -> dict:
25692569
def translate(y) -> dict:
25702570
match y:
2571+
case ("stop", dp, *p):
2572+
return {"stopRunBy": mkTag("StopByPre", [mkDatePattern(dp), lmap(mkPre,p)])}
25712573
case ("stop", d):
2572-
return {"stopRunBy":vDate(d)}
2574+
return {"stopRunBy": mkTag("StopByDate", vDate(d))}
25732575
case ("estimateExpense", *projectExps):
25742576
return {"projectedExpense":[(vStr(fn),mkTs("BalanceCurve",ts)) for (fn, ts) in projectExps]}
25752577
case ("call", *opts):

0 commit comments

Comments
 (0)