def season(deck_type: str = None) -> str: if deck_type not in [None, 'league']: raise DoesNotExistException( 'Unrecognized deck_type: `{deck_type}`'.format( deck_type=deck_type)) league_only = deck_type == 'league' view = Season(ds.load_season(get_season_id(), league_only), league_only) return view.page()
def season(deck_type=None): league_only = deck_type == 'league' view = Season(ds.load_season(get_season_id(), league_only), league_only) return view.page()
def season(season_id=None): view = Season(deck.load_season(season_id)) return view.page()