changed to pass league key when getting league table