コード例 #1
0
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()
コード例 #2
0
ファイル: main.py プロジェクト: Gibble1/Penny-Dreadful-Tools
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()
コード例 #3
0
ファイル: main.py プロジェクト: MD822/Penny-Dreadful-Tools
def season(season_id=None):
    view = Season(deck.load_season(season_id))
    return view.page()