arcavios / scooze

A flexible data layer for applications working with Magic: the Gathering cards, decks, and tournaments.
Other
12 stars 1 forks source link

DeckModel -> Deck and Deck -> DeckModel conversion #70

Open iambroadband opened 11 months ago

iambroadband commented 11 months ago

Description

We want to be able to convert between DeckModel and Deck easily in both directions.

Resources

https://stackoverflow.com/questions/55762673/how-to-parse-list-of-models-with-pydantic

iambroadband commented 11 months ago

image image

fjork3 commented 10 months ago

Blocked on #7 ; our Python wrappings around Card DB lookups may be able to solve a lot of this with the @cache decorator on our card lookup by ID.

iambroadband commented 9 months ago

I don't know what happened to the attached images here.