From cf2381a9d7345fab9767b78c7623b075d9ea91fc Mon Sep 17 00:00:00 2001
From: Xiaoyu <always.zhang@gmail.com>
Date: Wed, 27 Sep 2023 16:00:46 +0800
Subject: [PATCH] make report input as a map

---
 absbox/local/component.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/absbox/local/component.py b/absbox/local/component.py
index 145cace..eb05f54 100644
--- a/absbox/local/component.py
+++ b/absbox/local/component.py
@@ -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)}