From 82004cb7432965430c084fe4838d58a87181a134 Mon Sep 17 00:00:00 2001 From: EmmyHeart Date: Sat, 14 Sep 2024 01:30:29 +0000 Subject: [PATCH] Fix map overload in Chusan --- titles/chuni/schema/item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/titles/chuni/schema/item.py b/titles/chuni/schema/item.py index 30db4b8..9ce2c53 100644 --- a/titles/chuni/schema/item.py +++ b/titles/chuni/schema/item.py @@ -533,8 +533,8 @@ class ChuniItemData(BaseData): return None return result.lastrowid - async def get_map_areas(self, user_id: int) -> Optional[List[Row]]: - sql = select(map_area).where(map_area.c.user == user_id) + async def get_map_areas(self, user_id: int, map_area_ids: List[int]) -> Optional[List[Row]]: + sql = select(map_area).where(map_area.c.user == user_id, map_area.c.mapAreaId.in_(map_area_ids)) result = await self.execute(sql) if result is None: