yasuki_core.accounts.decks.summarize#
- summarize(cards, records_by_id)[source]#
Derive the denormalized deck summary from its cards.
The stronghold is the pre-game card typed
Stronghold; the deck’s clan is that stronghold’s clan. Dynasty and fate counts sum the quantities on their sides.- Parameters:
- Returns:
- summary
DeckSummary Stronghold id, clan, and dynasty/fate counts; the stronghold and clan are None if the deck has no stronghold.
- summary