lib/ahl_scraper/resources/game.rb in ahl_scraper-0.3.0 vs lib/ahl_scraper/resources/game.rb in ahl_scraper-0.3.1
- old
+ new
@@ -342,9 +342,10 @@
def set_game_status
irregular_game_status = IRREGULAR_GAMES.dig(game_id.to_s, :status)
return irregular_game_status if irregular_game_status
+ return "postponed" if @raw_data[:details][:status] == "Postponed"
# return "forfeited" if game is a forfeit, need to figure this out if it happens
return "finished" if @raw_data[:details][:final] == "1"
return "in_progress" if @raw_data[:details][:started] == "1"