outside-edge / python-espncricinfo

Python wrapper for the ESPNCricInfo JSON API
MIT License
145 stars 64 forks source link

Change float to int in Player class #11

Closed abbygriffiths closed 4 years ago

abbygriffiths commented 6 years ago

Creating a Player object leads to a problem in the _batting_fielding_averages method, on line 84, with num_formats using the / operator, which gives a float instead of the // operator to get an int. This raises an error when it is used to create a range on line 85.

dwillis commented 6 years ago

@abbygriffiths Hi, thanks for the report. Is this still an issue for you, and are you using Python 2 or 3?