fix(scripts): calibrate_ask.py --since/--until datetime 파싱

asyncpg 이 TIMESTAMPTZ 파라미터에 문자열 대신 datetime 객체를 요구
(DataError: invalid input, expected datetime instance, got str).
argparse type=datetime.fromisoformat 로 CLI 단계에서 파싱.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-17 08:22:01 +09:00
parent 1c502328f1
commit 3a3cd832f6
+4 -2
View File
@@ -68,8 +68,10 @@ def parse_args() -> argparse.Namespace:
help="ask_events.source 필터 (eval / ui_search / ui_detail / 미지정=전체)")
p.add_argument("--prompt-version", default=None,
help="ask_events.prompt_version 필터 (예: search_synthesis.v1-400char)")
p.add_argument("--since", default=None, help="ISO8601, created_at >= since")
p.add_argument("--until", default=None, help="ISO8601, created_at < until")
p.add_argument("--since", default=None, type=datetime.fromisoformat,
help="ISO8601, created_at >= since")
p.add_argument("--until", default=None, type=datetime.fromisoformat,
help="ISO8601, created_at < until")
p.add_argument("--eval-split", choices=["tuning", "confirm", "all"], default="all",
help="source='eval' 일 때 holdout split")
p.add_argument("--run-label", default=None, help="report 제목/파일명 라벨")