feat(project): show weekday and day count in weekly target popup

Each week reads like "11/1(일)~11/8(일) 8일".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 11:30:49 +09:00
parent cd3577b299
commit 38d0a87d6b
11 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ def week_targets() -> dict:
"""2026년 달마다 주차(store.month_weeks) — 1월 1·2주차만 값(100·200)."""
out = {}
for mo in range(1, 13):
out[mo] = [{"start": a.isoformat(), "n": i + 1, "label": f"{a.month}/{a.day}~{b.month}/{b.day}",
out[mo] = [{"start": a.isoformat(), "n": i + 1, "days": (b - a).days + 1, "label": f"{a.month}/{a.day}~{b.month}/{b.day}",
"value": {(1, 0): "100", (1, 1): "200"}.get((mo, i), "")}
for i, (a, b) in enumerate(store.month_weeks(2026, mo))]
return out