feat(프로젝트): 메인 업무·세부 업무 추가 칸 날짜 팝업에도 [매일]
- POST tasks 의 repeat_daily: true = 만든 뒤 켬(033 미적용 503), 화면은 data-daily-ready(db.daily_ready)일 때만 버튼 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1758,6 +1758,18 @@ class ProjectStore:
|
||||
([int(i) for i in ordered_ids], stage_id),
|
||||
)
|
||||
|
||||
def daily_ready(self) -> bool:
|
||||
"""tasks.repeat_daily(마이그레이션 033, 매일 하는 업무) 가 있는지. 한 번 켜지면 기억."""
|
||||
if getattr(self, "_daily_ready", False):
|
||||
return True
|
||||
with self._pool.connection() as conn:
|
||||
ok = bool(conn.execute(
|
||||
"SELECT 1 FROM information_schema.columns WHERE table_schema = 'public' "
|
||||
"AND table_name = 'tasks' AND column_name = 'repeat_daily'"
|
||||
).fetchone())
|
||||
self._daily_ready = ok
|
||||
return ok
|
||||
|
||||
def link_order_ready(self) -> bool:
|
||||
"""task_project_links.sort_order(마이그레이션 032) 가 있는지. 한 번 켜지면 기억."""
|
||||
if getattr(self, "_link_order_ready", False):
|
||||
|
||||
Reference in New Issue
Block a user