191888225f
syncGoals() was calling DELETE FROM goals WHERE match_id=X at the top, so processing goals2 (away team) wiped out goals1 (home team) that were just inserted. Every match with goals from both sides lost all home-team goals — Ronaldo's hat-trick vs Spain, Kane's vs Panama, and many others. Fix: move DELETE above the goals1/goals2 loop, executed once per match. Result: 2018 goal count corrected from 107 → 169; hat tricks from 8 → 18. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>