source/common/Liverpool.py
def combineCardDicts(dict1, dict2):
    """Combine two dictionaries of cards, such as played and to be played cards.

    This should work for both cards and serialized cards."""
    combined_cards = {}
    for key in set(dict1).union(dict2):
        combo_list = []
        for card in dict1.setdefault(key, []):
            combo_list.append(card)
        for card in dict2.setdefault(key, []):
            combo_list.append(card)
        combined_cards[key] = combo_list
    return combined_cards
Combine two dictionaries of cards, such as played and to be played cards.

    This should work for both cards and serialized cards.
Combine two dictionaries of cards, such as played and to be played cards.
This should work for both cards and serialized cards.
Combine two dictionaries of cards such as played and to be played cards . This should work for both cards and serialized cards .
def combineCardDicts(dict1, dict2):
    combined_cards = {}
    for key in set(dict1).union(dict2):
        combo_list = []
        for card in dict1.setdefault(key, []):
            combo_list.append(card)
        for card in dict2.setdefault(key, []):
            combo_list.append(card)
        combined_cards[key] = combo_list
    return combined_cards
def combineCardDicts ( dict1 , dict2 ) : combined_cards = { } for key in set ( dict1 ) . union ( dict2 ) : combo_list = [ ] for card in dict1 . setdefault ( key , [ ] ) : combo_list . append ( card ) for card in dict2 . setdefault ( key , [ ] ) : combo_list . append ( card ) combined_cards [ key ] = combo_list return combined_cards
Combine two dictionaries of cards, such as played and to be played cards.
Combine two dictionaries of cards such as played and to be played cards .
"""Combine two dictionaries of cards, such as played and to be played cards.

    This should work for both cards and serialized cards."""
dict1
dict2