From 218784a8de8618fffd4f5e9c5f0edf4052bc931a Mon Sep 17 00:00:00 2001 From: AoXuan Date: Mon, 11 Aug 2025 13:50:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(config.py):=E4=BC=98=E5=8C=96=E4=BE=A7?= =?UTF-8?q?=E6=95=85=E4=BA=8B=E5=85=B3=E5=8D=A1=E6=95=B0=E6=8D=AE=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/core/config.py b/app/core/config.py index df33415..98c4805 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -1143,7 +1143,7 @@ class AppConfig(GlobalConfig): def parse_utc(dt_str: str) -> datetime: return datetime.strptime(dt_str, "%Y/%m/%d %H:%M:%S").replace(tzinfo=timezone.utc) - results: List[Dict[str, str]] = [] + results: List[Dict[str, Any]] = [] for s in payload.get("Official", {}).get("sideStoryStage", []): act = s.get("Activity", {}) or {} @@ -1166,7 +1166,8 @@ class AppConfig(GlobalConfig): "Display": s.get("Display", ""), "Value": s.get("Value", ""), "Drop": raw_drop, - "DropName": drop_name + "DropName": drop_name, + "Activity": s.get("Activity", {}) }) return True, {"ALL": results}