fix: quote reserved keyword 'window' in prediction_snapshots SQL

This commit is contained in:
Celes Renata
2026-05-01 03:40:48 +00:00
parent 32d290bea7
commit 76f6bd5677
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ def _compute_layer_scores(
_INSERT_SNAPSHOT_SQL = """
INSERT INTO prediction_snapshots (
id, generated_at, ticker, window, horizon, direction, action, mode,
id, generated_at, ticker, "window", horizon, direction, action, mode,
strength, confidence, contradiction, p_bull, p_bear,
score_company, score_macro, score_competitive,
evidence_count, unique_source_count, duplicate_evidence_count,