archiTop/deck_fetcher/archidekt.py
def _validate_mainboard_cards(card: dict, mainboard_categories: Set[str]) -> bool:
        """Validates whether a single card belongs to mainboard.

        Args:
            card:                   Card json object contained in fetched deck information
            mainboard_identifier:   List holding valid mainboard categories

        Returns:
            True when card is contained in mainboard, False otherwise
        """
        # return category_check and categories_checks
        category = card['categories'][0] if len(card['categories']) > 0 else None

        return category in mainboard_categories
Validates whether a single card belongs to mainboard.

        Args:
            card:                   Card json object contained in fetched deck information
            mainboard_identifier:   List holding valid mainboard categories

        Returns:
            True when card is contained in mainboard, False otherwise
        
Validates whether a single card belongs to mainboard.
Validates whether a single card belongs to mainboard .
def _validate_mainboard_cards(card: dict, mainboard_categories: Set[str]) -> bool:
        category = card['categories'][0] if len(card['categories']) > 0 else None
        return category in mainboard_categories
def _validate_mainboard_cards ( card : dict , mainboard_categories : Set [ str ] ) -> bool : category = card [ 'categories' ] [ 0 ] if len ( card [ 'categories' ] ) > 0 else None return category in mainboard_categories
Validates whether a single card belongs to mainboard.
Validates whether a single card belongs to mainboard .
"""Validates whether a single card belongs to mainboard.

        Args:
            card:                   Card json object contained in fetched deck information
            mainboard_identifier:   List holding valid mainboard categories

        Returns:
            True when card is contained in mainboard, False otherwise
        """ # return category_check and categories_checks
True when card is contained in mainboard, False otherwise
True when card is contained in mainboard False otherwise
card
dict
Card json object contained in fetched deck information
Card json object contained in fetched deck information
mainboard_categories
Set[str]
mainboard_identifier
List holding valid mainboard categories
List holding valid mainboard categories