From 8f4c08f825910f39009addcfca3f72ab066df08d Mon Sep 17 00:00:00 2001 From: EmmyHeart Date: Sat, 14 Sep 2024 01:28:35 +0000 Subject: [PATCH] Fix map overload in Chusan --- titles/chuni/new.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/titles/chuni/new.py b/titles/chuni/new.py index 2275a6e..3d3fb98 100644 --- a/titles/chuni/new.py +++ b/titles/chuni/new.py @@ -104,7 +104,8 @@ class ChuniNew(ChuniBase): return {"returnCode": "1"} async def handle_get_user_map_area_api_request(self, data: Dict) -> Dict: - user_map_areas = await self.data.item.get_map_areas(data["userId"]) + map_area_ids = [int(area["mapAreaId"]) for area in data["mapAreaIdList"]] + user_map_areas = await self.data.item.get_map_areas(data["userId"], map_area_ids) map_areas = [] for map_area in user_map_areas: