Summary
The sporty.no sync currently fetches from https://sporty.no/api/v1/businessunits/8/groupactivities with from and to query parameters set to today and today+10 days. However, the latestRow in gym_calendar only reaches today rather than 10 days ahead, suggesting either the parameter names are wrong and sporty.no is ignoring them, or the gym simply hasn't published next week's schedule yet. The correct parameter names need to be identified (e.g. by inspecting the network requests the sporty.no website makes) and confirmed to work end-to-end.
Priority
Low
Acceptance criteria
Out of scope
- Changing the 10-day lookahead window
- Supporting multiple gyms
Summary
The sporty.no sync currently fetches from
https://sporty.no/api/v1/businessunits/8/groupactivitieswithfromandtoquery parameters set to today and today+10 days. However, thelatestRowingym_calendaronly reaches today rather than 10 days ahead, suggesting either the parameter names are wrong and sporty.no is ignoring them, or the gym simply hasn't published next week's schedule yet. The correct parameter names need to be identified (e.g. by inspecting the network requests the sporty.no website makes) and confirmed to work end-to-end.Priority
Low
Acceptance criteria
buildSportyUrl()inapp/api/sportySync.jswith the confirmed parameter namesGET /api/sporty-healthshowslatestRowconsistently ~10 days ahead of todayOut of scope