PDHdata / SmallFormats

Deck-stats server for less-common Magic: the Gathering formats
MIT License
6 stars 0 forks source link

Move data access to models #63

Closed vtbassmatt closed 1 year ago

vtbassmatt commented 1 year ago

Instead of having complex filtering logic on views, move most of it to the models and their managers. I tried not to go overboard; there are places where we still make multiple chained calls in a view. But mostly it's more obvious what each query entry is doing.