from sports_backtesting import sports_engine
games = sports_engine.data_loader.load_games('nba', season='2024')
print(f'Total games loaded: {len(games)}')
games_with_scores = [g for g in games if g.get('HomeTeamScore', 0) > 0 and g.get('AwayTeamScore', 0) > 0]
print(f'Games with scores: {len(games_with_scores)}')
if games_with_scores:
    print('Sample game with scores:', games_with_scores[0])
elif games:
    print('Sample game without scores:', games[0])
    print('Available score fields:', [k for k in games[0].keys() if 'score' in k.lower() or 'Score' in k])
