Skip to content

Commit

Permalink
fix soccer lineup parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
phoffer committed Oct 20, 2017
1 parent afd82ec commit e71f740
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sportradar/api/soccer/lineup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def update(data, **opts)
# @starting_lineup = data['starting_lineup'] if data['starting_lineup']
# @substitutes = data['substitutes'] if data['substitutes']

create_data(@starting_hash, data['starting_lineup'], klass: Player, api: api, lineup: self) if data['starting_lineup']
create_data(@subs_hash, data['substitutes'], klass: Player, api: api, lineup: self) if data['substitutes']
create_data(@starting_hash, data['starting_lineup'], klass: Player, api: opts[:api], lineup: self) if data['starting_lineup']
create_data(@subs_hash, data['substitutes'], klass: Player, api: opts[:api], lineup: self) if data['substitutes']
end

end
Expand Down
33 changes: 33 additions & 0 deletions test/vcr/cassettes/tests_bad_get_request.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e71f740

Please sign in to comment.