Пример #1
0
def archetypes(deck_type: Optional[str] = None) -> str:
    tournament_only = validate_deck_type(
        deck_type, [DeckType.ALL, DeckType.TOURNAMENT]) == DeckType.TOURNAMENT
    season_id = get_season_id()
    deckless_archetypes = archs.load_archetypes_deckless(
        season_id=season_id, tournament_only=tournament_only)
    view = Archetypes(deckless_archetypes, tournament_only=tournament_only)
    return view.page()
Пример #2
0
def archetypes_tournament() -> str:
    season_id = get_season_id()
    deckless_archetypes = archs.load_archetypes_deckless(season_id=season_id)
    all_matchups = archs.load_all_matchups(season_id=season_id)
    view = Archetypes(deckless_archetypes, all_matchups, tournament_only=True)
    return view.page()
Пример #3
0
def archetypes() -> str:
    season_id = get_season_id()
    deckless_archetypes = archs.load_archetypes_deckless(season_id=season_id)
    all_matchups = archs.load_all_matchups(season_id=season_id)
    view = Archetypes(deckless_archetypes, all_matchups)
    return view.page()
Пример #4
0
def archetypes():
    view = Archetypes(archs.load_archetypes_deckless(season_id=get_season_id()))
    return view.page()
Пример #5
0
def archetypes():
    view = Archetypes(archs.load_archetypes_deckless())
    return view.page()