carbonplan / offsets-db-api

accounting of voluntary and compliance offset programs
https://carbonplan.org/research/offsets-db
MIT License
1 stars 0 forks source link

refactor filter application in API endpoints #25

Closed andersy005 closed 1 year ago

andersy005 commented 1 year ago

this pull request refactors the filter application logic in the API endpoints for retrieving projects, project statistics, credits, and credit statistics. the goal of this refactor is to make the code more concise, readable, and maintainable by using a common approach for applying filters across all endpoints.

Changes: