From 28ecf85da80fd9bffccd8795d80e509600a94793 Mon Sep 17 00:00:00 2001 From: shangfangjian Date: Tue, 22 Sep 2026 10:18:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20MatchStats=20=E4=B8=BB=E9=94=AE=E6=98=AF?= =?UTF-8?q?=20match=5Fid=20=E9=9D=9E=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scheduler._run_checks 误用 MatchStats.id(MatchStats 无此列,主键为 match_id), 导致数据质量检查定时任务抛 AttributeError。修正为 MatchStats.match_id.is_(None)。 --- src/core/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/scheduler.py b/src/core/scheduler.py index 214bc30..6a00949 100644 --- a/src/core/scheduler.py +++ b/src/core/scheduler.py @@ -144,7 +144,7 @@ class DataQualityScheduler: .select_from(Match) .outerjoin(MatchStats, Match.id == MatchStats.match_id) .where(Match.match_status == "finished") - .where(MatchStats.id.is_(None)) + .where(MatchStats.match_id.is_(None)) ) ).scalar() or 0