Skip to content

Commit

Permalink
make report input as a map
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Sep 27, 2023
1 parent 9b458ae commit cf2381a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion absbox/local/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,8 @@ def translate(y):
return {"interest":[mkRateAssumption(_) for _ in ints]}
case ("inspect",*tps):
return {"inspectOn":[ (mkDatePattern(dp),mkDs(ds)) for (dp,ds) in tps]}
case ("report",interval):
case ("report",m):
interval = m['dates']
return {"buildFinancialReport":mkDatePattern(interval)}
case ("pricing",p):
return {"pricing":mkPricingAssump(p)}
Expand Down

0 comments on commit cf2381a

Please sign in to comment.