RamParameswaran / pyAFL

Python AFL (Australian Football League) library for collecting/analysing AFL data from AFLtables.com
MIT License
15 stars 10 forks source link

fix: naming conflict for Adelaide and Port Adelaide #24

Closed RamParameswaran closed 9 months ago

RamParameswaran commented 9 months ago

Addresses issue #23.

Fixes bug in Team.season_stats where Port Adelaide stats actually return Adelaide. This was due to a naive implementation of if {team_name} in String, which could not differentiate between Adelaide AND Port Adelaide.

Shout-out to @polar1510 who raises PR #22 10 months ago, which aimed to fix the same bug, and brought attention to this fix.