lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.23 vs lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.24

- old
+ new

@@ -86,10 +86,10 @@ drives = Array(quarters&.flat_map(&:drives)).compact # Scan for duplicates drives.each_cons(2) do |a,b| # Merge plays and events into the first if duplicate and flag dup for removal if a.id == b.id - a.plays.concat(b.plays) + Array(a.plays).concat(b.plays) Array(a.events).concat(Array(b.events)).uniq! b.id = nil end end # Remove the dup