feat: 사주 금전·일은 이번 주에 정할 날로, 올해 운에 잘 맞는 달, 레벨업 창에서 열린 칸으로 바로 가기
- 금전·일: 오늘 카드를 되풀이하지 않고 이번 주 중 결제·계약할 날, 돈 빌려주기 피할 날, 보고·면접 잡을 날 - 올해 운: 잘 맞는 달 3개, 11월부터는 다음 해 미리 보기 - 레벨업 창 '…보러 가기' → /saju#칸, 내 레벨 창의 각 모으는 일 줄을 누르면 그 화면으로 - 궁합 결과에 상대 생일과 다른 사람 보기
This commit is contained in:
1 parent
e4834fd24e
commit
cb013fcc9a
7 files changed
+121
-28
No files matched your search
@@ -90,6 +90,7 @@ class SajuPeriod(WebPacketProtocol):
|
||||
title: str
|
||||
body: str
|
||||
notes: list[str] = []
|
||||
months: list[int] = Field([], description="올해: 잘 맞는 달 (양력 달)")
|
||||
|
||||
|
||||
class SajuLock(WebPacketProtocol):
|
||||
@@ -103,8 +104,8 @@ class Res_Saju(Res_WebPacketProtocol):
|
||||
me: Optional[SajuMe] = None
|
||||
today: Optional[SajuToday] = None
|
||||
week: Optional[list[SajuDay]] = Field(None, description="레벨 2부터")
|
||||
money: Optional[str] = Field(None, description="레벨 3부터")
|
||||
work: Optional[str] = None
|
||||
money: Optional[list[str]] = Field(None, description="레벨 3부터: 이번 주 돈을 정할 날·피할 날")
|
||||
work: Optional[list[str]] = None
|
||||
love: Optional[SajuLove] = Field(None, description="레벨 4부터")
|
||||
month: Optional[SajuPeriod] = Field(None, description="레벨 6부터")
|
||||
year: Optional[SajuPeriod] = Field(None, description="레벨 7부터")
|
||||
|
||||
@@ -42,7 +42,7 @@ def _res(r: Reading) -> Res_Saju:
|
||||
love=SajuLove(good=SajuLoveDay(**r.love["good"]) if r.love.get("good") else None, caution=SajuLoveDay(**r.love["caution"]) if r.love.get("caution") else None,
|
||||
gender_known=r.love.get("gender") is not None) if r.love else None,
|
||||
month=SajuPeriod(label=f"이달 · {r.month['from']:%-m/%-d} {r.month['jeol']} ~ {r.month['until']:%-m/%-d}", **{k: r.month[k] for k in ("pillar", "ten_god", "title", "body", "notes")}) if r.month else None,
|
||||
year=SajuPeriod(label=f"{r.year['year']}년", **{k: r.year[k] for k in ("pillar", "ten_god", "title", "body", "notes")}) if r.year else None,
|
||||
year=SajuPeriod(label=f"{r.year['year']}년" + (" 미리 보기" if r.year["preview"] else ""), months=r.year["months"], **{k: r.year[k] for k in ("pillar", "ten_god", "title", "body", "notes")}) if r.year else None,
|
||||
level=r.level, logged_in=r.logged_in,
|
||||
locks=[SajuLock(key=k, name=n, level=lv, unlocked=r.logged_in and r.level >= lv) for lv, items in UNLOCKS.items() for k, n in items],
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user