plezanje-net / web

Angular website frontend
https://www.plezanje.net/
GNU General Public License v3.0
6 stars 1 forks source link

Statistics - count only sport routes #459

Closed demshy closed 6 months ago

demshy commented 6 months ago

There was a bug in statistics where all types of routes were considered as sport in tables and graphs. This PR adds a hardcoded filter to the query. The backend implementation allows us to add filters to the frontend for an upgrade of this, to also have alpine / bouldering statistics.

Test by adding a high grade boulder to your log and see that it is counted as a route in statistics (8a boulder as 8b+ route). Then apply the API PR, run codegen, apply this and open stats again.