lib/sportradar/api/odds/competition.rb in sportradar-api-0.20.1 vs lib/sportradar/api/odds/competition.rb in sportradar-api-0.20.2

- old
+ new

@@ -27,12 +27,12 @@ @sport_events_hash.values end def get_player_props prop_data = fetch_player_props.fetch('competition_sport_events_players_props', []) - if prop_data.size == 10 + if prop_data.size > 0 new_data = prop_data - while new_data.size == 10 + while new_data.size > 0 new_data = fetch_player_props(start: prop_data.size).fetch('competition_sport_events_players_props', []) prop_data += new_data end end data = {'competition_sport_events_players_props' => prop_data }