getCalendarEvents() currently takes a parameter to specify whether it should return active or historical events. I'd rather do it like I did the player results, where there are two separate functions and if need be a helper in the middle for common formatting stuff between them.
getCalendarEvents() currently takes a parameter to specify whether it should return active or historical events. I'd rather do it like I did the player results, where there are two separate functions and if need be a helper in the middle for common formatting stuff between them.