feat(lotto-evolver): service_proxy.lotto_evolver_status/evaluate helpers
This commit is contained in:
@@ -377,3 +377,20 @@ async def lotto_latest_draw() -> Optional[int]:
|
|||||||
return None
|
return None
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
async def lotto_evolver_status() -> Dict[str, Any]:
|
||||||
|
"""GET /api/lotto/evolver/status — 이번주 trials + 다음주 base 정보."""
|
||||||
|
from .config import LOTTO_BACKEND_URL
|
||||||
|
resp = await _client.get(f"{LOTTO_BACKEND_URL}/api/lotto/evolver/status")
|
||||||
|
resp.raise_for_status()
|
||||||
|
return resp.json()
|
||||||
|
|
||||||
|
|
||||||
|
async def lotto_evolver_evaluate() -> Dict[str, Any]:
|
||||||
|
"""POST /api/lotto/evolver/evaluate-now — 회고 트리거 (텔레그램 리포트용)."""
|
||||||
|
from .config import LOTTO_BACKEND_URL
|
||||||
|
async with httpx.AsyncClient(timeout=60.0) as client:
|
||||||
|
resp = await client.post(f"{LOTTO_BACKEND_URL}/api/lotto/evolver/evaluate-now")
|
||||||
|
resp.raise_for_status()
|
||||||
|
return resp.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user