Closed thurask closed 8 years ago
Also this season the French league will only be relegating the bottom 2 teams. The output should probably reflect that also.
Maybe a list of special cases to check?
Something like
elif league.CLEAGUE <= team["position"] <= league.RELEGATED
defined for each lague?
It might be a good idea to have some kind of list of properties for each league.
This could simplify things when it comes to weird cases like French league only having two relegated teams. And every few years the UEFA coefficients can affect the number of CL spots etc. For example Italy could potentially overtake England and get an extra spot.
@thurask @Saturn I have merged the branch for now. I'll be adding other properties based on #11
@Saturn @thurask I've added property for each league for relegation and champions league spots. Would add EL spots too.
As it stands, teams 18-20 are marked in red; if the league doesn't have 20 teams (ex. Bundesliga), that's a problem.