• Stefy Lanza (nextime / spora )'s avatar
    Fix handling of incomplete matches from past days on startup · e4010d4e
    Stefy Lanza (nextime / spora ) authored
    - Add _cleanup_old_incomplete_matches() to mark 2+ day old matches as failed
    - Add _get_yesterday_incomplete_matches() to detect yesterday's incomplete matches
    - Add _get_or_create_today_fixture() to ensure new matches go to today's fixture
    - Modify initialize() to process past incomplete matches before starting
    - Modify _handle_start_game() to use pre-computed yesterday_fixture_id
    - Add yesterday_fixture_id attribute to track yesterday's fixture for completion
    
    This ensures:
    - Matches from 2+ days ago are marked as failed with bet cancellation
    - Yesterday's incomplete matches are played to completion first
    - New matches are created in today's fixture, not yesterday's
    e4010d4e
games_thread.py 246 KB