feat: 구 중심 20km 안에 서쪽이 트인 노을 명소가 있으면 노을 점수 가산
This commit is contained in:
1 parent
3857ef8d14
commit
cac6ea236f
6 files changed
+58
-4
No files matched your search
@@ -58,5 +58,9 @@ class SkyCRUD:
|
||||
)
|
||||
return list((await s.scalars(stmt)).all())
|
||||
|
||||
async def west_open_spots(self, s: AsyncSession) -> list[SunsetSpot]:
|
||||
"""서쪽이 트인 노을 명소 (sort_order 0)."""
|
||||
return list((await s.scalars(select(SunsetSpot).where(SunsetSpot.sort_order == 0))).all())
|
||||
|
||||
async def ranking_regions(self, s: AsyncSession) -> list[Region]:
|
||||
return list((await s.scalars(select(Region).where(Region.is_ranking_spot.is_(True)))).all())
|
||||
Reference in new issue
Block a user