def _active_games(inactive_interval):
 games = _games_in_week(_cur_year, _cur_week, _cur_season_phase)
 active = []
 for info in games:
  if (not _game_is_active(info, inactive_interval)):
   continue
  active.append(info)
 return active

def _active_games ( inactive_interval ) : games = _games_in_week ( _cur_year , _cur_week , _cur_season_phase ) active = [ ] for info in games : if ( not _game_is_active ( info , inactive_interval ) ) : continue active . append ( info ) return active
returns a list of all active games .