forked from Hay1tsme/artemis
Fix map overload in Chusan
This commit is contained in:
parent
8f4c08f825
commit
82004cb743
@ -533,8 +533,8 @@ class ChuniItemData(BaseData):
|
|||||||
return None
|
return None
|
||||||
return result.lastrowid
|
return result.lastrowid
|
||||||
|
|
||||||
async def get_map_areas(self, user_id: int) -> Optional[List[Row]]:
|
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)
|
sql = select(map_area).where(map_area.c.user == user_id, map_area.c.mapAreaId.in_(map_area_ids))
|
||||||
|
|
||||||
result = await self.execute(sql)
|
result = await self.execute(sql)
|
||||||
if result is None:
|
if result is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user