AndyReifman / ArseneWenger

1 stars 12 forks source link

Fix #75 Adding new teams #76

Closed AndyReifman closed 1 year ago

FelixRandle commented 1 year ago

Would it be worth adding some base case for future seasons because I know this'll be forgotten and then cause issues in future. Just some sort of

if team not in clublist: 
 return team[:15] 

So the command doesn't break fully when new season starts

AndyReifman commented 1 year ago

Would it be worth adding some base case

Good idea. I updated the return to be

return clublist[club] if club in clublist else club

Then this would really only need to be updated if a team with a super long or weird name arrives.