From 36c563bf31ada4488f2816dd883cebc9ad8f02a7 Mon Sep 17 00:00:00 2001 From: Shawn Zhang Date: Tue, 18 Jul 2023 11:14:49 +0800 Subject: [PATCH] Update component.py --- absbox/local/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/absbox/local/component.py b/absbox/local/component.py index 1024167..f0b65b0 100644 --- a/absbox/local/component.py +++ b/absbox/local/component.py @@ -1107,7 +1107,7 @@ def readPricingResult(x, locale) -> dict: return None h = None - tag = query(x, [S.MVALS, S.ALL, "tag"])[0] + tag = list(x.values())[0]["tag"] if tag == "PriceResult": h = {"cn": ["估值", "票面估值", "WAL", "久期", "凸性", "应计利息"], "en": ["pricing", "face", "WAL", "duration", "convexity", "accure interest"]}