ESPN seems to have discontinued support for the current week number in their API. We have implemented a band-aid for this week by hardcoding the value to 1 if the week number doesn't exist in their response. However, this is incredibly fragile, and no one wants to be in a position where they need to update a variable and re-deploy the whole website.
It would be more robust if we instead obtained this information by matching the current date against the dates in each week reference.
ESPN seems to have discontinued support for the current week number in their API. We have implemented a band-aid for this week by hardcoding the value to
1
if the week number doesn't exist in their response. However, this is incredibly fragile, and no one wants to be in a position where they need to update a variable and re-deploy the whole website.It would be more robust if we instead obtained this information by matching the current date against the dates in each
week
reference.