feat(settle): 결과 소스를 일정 소스와 분리(RESULT_SOURCE) + 순서 무관 매칭

- RESULT_SOURCE(비우면 SCHEDULE_SOURCE) 추가 — 일정=openfootball, 결과=football-data 가능
- fetch_results 가 result_source 사용
- 자동 정산 매칭을 홈/원정 순서 무관하게 보강(소스 순서 달라도 스코어 정합)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
HyeongBaeYangandClaude Opus 4.8 committed 2026-06-12 09:41:36 +09:00
1 parent 140e15fb9f
commit 54ed8bf10d
4 files changed
+27 -9

No files matched your search

+6 -2
View File
@@ -177,8 +177,12 @@ async def _results_football_data() -> list[dict]:
async def fetch_results() -> list[dict]:
"""확정된 경기 스코어 수집 → [{teamA, teamB, scoreA, scoreB}]. 실패 시 빈 리스트."""
src = settings.schedule_source.lower()
"""확정된 경기 스코어 수집 → [{teamA, teamB, scoreA, scoreB}]. 실패 시 빈 리스트.
소스는 result_source(없으면 schedule_source). openfootball 은 결과 미게시라
자동 종료에는 football-data 를 권장.
"""
src = settings.effective_result_source
try:
if src == "openfootball":
out = await _results_openfootball()