archiTop/deck_builder/multi_card_deck_builder.py
def _populate_card_asset_template(self, card: ScryfallCard):
        """Creates a new TableTop card asset object and fills with information from card class.
        There should only exist on card asset template for each unique card.
        Therefor cards with quantity > 1 do only get one card asset.

        Asset matching is done with insertion order of asset objects.
        Order in the ContainedObjects, DeckID's must match the order of card assets.

        Once populated, card asset is inserted in custom deck and asset id is incremented.

        Args:
            card:   Card to create asset for
        """
        card_asset_json = deepcopy(card_asset_template)

        card_asset_json['FaceURL'] = card.image_url
        card_asset_json['BackURL'] = self.card_back_url

        self.custom_deck[str(self.current_card_asset_id)] = card_asset_json

        self.current_card_asset_id += 1
Creates a new TableTop card asset object and fills with information from card class.
        There should only exist on card asset template for each unique card.
        Therefor cards with quantity > 1 do only get one card asset.

        Asset matching is done with insertion order of asset objects.
        Order in the ContainedObjects, DeckID's must match the order of card assets.

        Once populated, card asset is inserted in custom deck and asset id is incremented.

        Args:
            card:   Card to create asset for
        
Creates a new TableTop card asset object and fills with information from card class.
There should only exist on card asset template for each unique card.
Therefor cards with quantity > 1 do only get one card asset.

Asset matching is done with insertion order of asset objects.
Order in the ContainedObjects, DeckID's must match the order of card assets.

Once populated, card asset is inserted in custom deck and asset id is incremented.
Creates a new TableTop card asset object and fills with information from card class . There should only exist on card asset template for each unique card . Therefor cards with quantity > 1 do only get one card asset . Asset matching is done with insertion order of asset objects . Order in the ContainedObjects DeckID ' s must match the order of card assets . Once populated card asset is inserted in custom deck and asset id is incremented .
def _populate_card_asset_template(self, card: ScryfallCard):
        card_asset_json = deepcopy(card_asset_template)
        card_asset_json['FaceURL'] = card.image_url
        card_asset_json['BackURL'] = self.card_back_url
        self.custom_deck[str(self.current_card_asset_id)] = card_asset_json
        self.current_card_asset_id += 1
def _populate_card_asset_template ( self , card : ScryfallCard ) : card_asset_json = deepcopy ( card_asset_template ) card_asset_json [ 'FaceURL' ] = card . image_url card_asset_json [ 'BackURL' ] = self . card_back_url self . custom_deck [ str ( self . current_card_asset_id ) ] = card_asset_json self . current_card_asset_id += 1
Creates a new TableTop card asset object and fills with information from card class.
Creates a new TableTop card asset object and fills with information from card class .
"""Creates a new TableTop card asset object and fills with information from card class.
        There should only exist on card asset template for each unique card.
        Therefor cards with quantity > 1 do only get one card asset.

        Asset matching is done with insertion order of asset objects.
        Order in the ContainedObjects, DeckID's must match the order of card assets.

        Once populated, card asset is inserted in custom deck and asset id is incremented.

        Args:
            card:   Card to create asset for
        """
self
card
ScryfallCard
Card to create asset for
Card to create asset for