Nookipedia / nookipedia-api

Nookipedia's custom API for querying data from the Animal Crossing video game series.
https://api.nookipedia.com/
MIT License
40 stars 12 forks source link

Boilerplate Cleanup #49

Closed Micalobia closed 3 years ago

Micalobia commented 3 years ago

Resolves #44, very open to changes, as none of this was talked about. Cuts down the file size of app.py by ~5%, as well as making the creation of new endpoints a lot easier.

Micalobia commented 3 years ago

Considering working on trying to reduce the clutter made by all the where <condition> statement building, as well as maybe simplifying cargo queries more, although that's a lesser concern.

Micalobia commented 3 years ago

I am not sure about the WhereBuilder commit, everything else I think is really beneficial though. Any feedback would be nice.

Micalobia commented 3 years ago

Should be good to go now, removed the WhereBuilder class for a much simpler, smaller helper function params_where, as well as making the way every where conditional was built the same.