archiTop/deck_fetcher/moxfield.py
def _parse_card(data: dict, commander: bool = False) -> RawCard:
        """Parses single card information from deck service into Card object.

        Args:
            card:   Card json object to parse information from

        Returns:
            Card class containing parsed information from card json object
        """
        quantity = data['quantity']
        name = data['card']['name']
        uid = data['card']['scryfall_id']

        return RawCard(name, quantity, uid, commander)
Parses single card information from deck service into Card object.

        Args:
            card:   Card json object to parse information from

        Returns:
            Card class containing parsed information from card json object
        
Parses single card information from deck service into Card object.
Parses single card information from deck service into Card object .
def _parse_card(data: dict, commander: bool = False) -> RawCard:
        quantity = data['quantity']
        name = data['card']['name']
        uid = data['card']['scryfall_id']
        return RawCard(name, quantity, uid, commander)
def _parse_card ( data : dict , commander : bool = False ) -> RawCard : quantity = data [ 'quantity' ] name = data [ 'card' ] [ 'name' ] uid = data [ 'card' ] [ 'scryfall_id' ] return RawCard ( name , quantity , uid , commander )
Parses single card information from deck service into Card object.
Parses single card information from deck service into Card object .
"""Parses single card information from deck service into Card object.

        Args:
            card:   Card json object to parse information from

        Returns:
            Card class containing parsed information from card json object
        """
Card class containing parsed information from card json object
Card class containing parsed information from card json object
data
dict
commander
bool
card
Card json object to parse information from
Card json object to parse information from