Skip to content

Commit

Permalink
don’t load “If Necessary” games
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Hoffman <[email protected]>
  • Loading branch information
Fustrate committed Oct 8, 2023
1 parent 6b1c947 commit addefa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/load_postseason_game_threads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def add_game_to_schedule?(game)
!game.dig('status', 'startTimeTBD') &&
game.dig('teams', 'away', 'team', 'division') &&
game.dig('teams', 'home', 'team', 'division') &&
!game.dig('seriesStatus', 'isOver')
!game.dig('seriesStatus', 'isOver') &&
game['ifNecessary'] != 'Y'
end

def insert_game(game, starts_at, post_at, title, subreddit_id)
Expand Down

0 comments on commit addefa3

Please sign in to comment.