feat: 오늘 탭 아이콘 줄에 날씨 게임(/game) 연결, 오늘 코디 빼기, 오늘 타로는 잠시 숨김
- feat/weather-game(구름 합치기) 브랜치를 합쳐 아이콘에서 바로 열림 - 오늘 코디 아이콘·창과 그걸 위해 넣은 GET /v1/card/latest 를 걷어냄 - 오늘 타로는 features.ts HIDDEN 으로 숨김 (아이콘 줄·각 모으는 법에서 빠짐, 안내 문구에서도 타로를 뺌)
This commit is contained in:
1 parent
4cfcbcf7ea
commit
e4834fd24e
15 files changed
+18
-183
No files matched your search
@@ -26,13 +26,6 @@ class CardCRUD:
|
||||
"""만든 순서 역순. 올린 것·승인 대기·반려 모두."""
|
||||
return list((await s.scalars(select(CardSet).order_by(CardSet.card_id.desc()).limit(limit))).all())
|
||||
|
||||
async def latest_published(self, s: AsyncSession, template: str) -> Optional[CardSet]:
|
||||
"""그 틀로 가장 최근에 피드에 올린 카드뉴스"""
|
||||
return await s.scalar(
|
||||
select(CardSet).where(CardSet.template == template, CardSet.status == CardStatus.PUBLISHED.value, CardSet.post_id.is_not(None))
|
||||
.order_by(CardSet.published_at.desc()).limit(1)
|
||||
)
|
||||
|
||||
async def many(self, s: AsyncSession, card_ids: list[int]) -> list[CardSet]:
|
||||
if not card_ids:
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user