--- id: d1c857db-6254-4580-a904-c0d5c1e661d3 type: solution title: "Fix week rollover 60x spam bug" tags: [major-domo, python, fix, transaction-freeze, discord-bot] importance: 0.8 confidence: 0.8 created: "2025-12-22T20:15:41.064837+00:00" updated: "2025-12-22T20:15:41.064837+00:00" --- Fixed 3 critical bugs in Major Domo transaction freeze task: 1) Deduplication logic tracked wrong week - saved freeze_from_week BEFORE _begin_freeze modifies it. 2) _run_transactions bypassed service layer - added get_regular_transactions_by_week() with frozen=false, cancelled=false filters. 3) CRITICAL: Hardcoded current_id=1 in league_service.py - the Current table has one row PER SEASON, was patching Season 3 (id=1) instead of Season 13 (id=11). Root cause: wrong record patched so freeze never set to True, causing 60 executions per hour.