This uses the round labels in Footywire's tables to calculate round numbers for the data sets rather than using incrementing calendar weeks. Overall, I think it simplifies the code a bit, especially since it makes correcting all the special exceptions no longer necessary. The necessary addition of of reduce to insert cumulative round names into the raw match/betting data adds a bit of complexity, but I think it's still better on net.
An added benefit of this change is that it reduces maintenance costs, as the AFL's penchant for creative fixtures don't require one-off fixes anymore.
While working on this, I noticed that Season.Game wasn't being calculated correctly, so I fixed that while I was in the neighbourhood.
Resolves #130
This uses the round labels in Footywire's tables to calculate round numbers for the data sets rather than using incrementing calendar weeks. Overall, I think it simplifies the code a bit, especially since it makes correcting all the special exceptions no longer necessary. The necessary addition of of
reduce
to insert cumulative round names into the raw match/betting data adds a bit of complexity, but I think it's still better on net.An added benefit of this change is that it reduces maintenance costs, as the AFL's penchant for creative fixtures don't require one-off fixes anymore.
While working on this, I noticed that
Season.Game
wasn't being calculated correctly, so I fixed that while I was in the neighbourhood.