fix(weight-evolver): draws 테이블 컬럼명 n1..n6 사용 (drw_num1..6 X) + datetime import 정렬
evaluate_weekly()에서 당첨번호 참조 시 존재하지 않는 drw_num1..6 컬럼을 실제 테이블 컬럼명 n1..n6으로 수정. datetime/timedelta/timezone import를 파일 중간(line 128)에서 상단 stdlib imports 섹션으로 이동. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
from __future__ import annotations
|
||||
import math
|
||||
import random
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
|
||||
import numpy as np
|
||||
@@ -125,9 +126,6 @@ def decide_base_update(
|
||||
|
||||
# ---------- DB-touching entry points ----------
|
||||
|
||||
from datetime import datetime, timedelta, timezone
|
||||
|
||||
|
||||
KST = timezone(timedelta(hours=9))
|
||||
|
||||
|
||||
@@ -238,8 +236,8 @@ def evaluate_weekly() -> Dict[str, Any]:
|
||||
if latest is None:
|
||||
return {"ok": False, "reason": "no_latest_draw"}
|
||||
winning = [
|
||||
latest["drw_num1"], latest["drw_num2"], latest["drw_num3"],
|
||||
latest["drw_num4"], latest["drw_num5"], latest["drw_num6"],
|
||||
latest["n1"], latest["n2"], latest["n3"],
|
||||
latest["n4"], latest["n5"], latest["n6"],
|
||||
]
|
||||
|
||||
per_day = []
|
||||
|
||||
Reference in New Issue
Block a user