wuvt / trackman

WUVT's track logging web-app
GNU Affero General Public License v3.0
4 stars 3 forks source link

Chart API should support weekly charts #112

Open echarlie opened 4 years ago

echarlie commented 4 years ago

internal api appears to support this: https://github.com/wuvt/trackman/blob/master/trackman/charts.py#L9, however we do not support it in https://github.com/wuvt/trackman/blob/master/trackman/api/v1/charts.py

Realistically, we should probably use week number relative to the year for weekly charts: the chart for the 5th week of August is less useful (or easy to figure out) than for the 30th week of the year. Then we need to fix the API on the client side