lib/sportradar/api/basketball/plays/base.rb in sportradar-api-0.9.31 vs lib/sportradar/api/basketball/plays/base.rb in sportradar-api-0.9.32
- old
+ new
@@ -73,13 +73,14 @@
@statistics = data['statistics']
stat = data.dig('statistics', base_key)
stat = stat[0] if stat.is_a?(Array) # sometimes SR has an array of identical assist hashes
@team = stat['team']
@team_id = @team['id'] if @team
- @player = data['player']
+ @player = stat['player']
@player_id = @player['id'] if @player
rescue => e
- binding.pry
+ puts e
+ # binding.pry
end
end
end
end