AdamCurtisVT / sleeper-py

Python implementation of the Sleeper API.
MIT License
5 stars 0 forks source link

`Players.get_all_players()` returns a list of player IDs instead of all player data #1

Closed ianpittwood closed 8 months ago

ianpittwood commented 8 months ago

The Players.get_all_players() endpoint isn't working as expected for me. According to the Sleeper API page this endpoint should return a list of dictionaries with player data, but instead I'm only getting a list of the player IDs.

Expected:

{
  "3086": {
    "hashtag": "#TomBrady-NFL-NE-12",
    "depth_chart_position": 1,
    "status": "Active",
    "sport": "nfl",
    "fantasy_positions": ["QB"],
    "number": 12,
    "search_last_name": "brady",
    "injury_start_date": null,
    "weight": "220",
    "position": "QB",
    "practice_participation": null,
    "sportradar_id": "",
    "team": "NE",
    "last_name": "Brady",
    "college": "Michigan",
    "fantasy_data_id":17836,
    "injury_status":null,
    "player_id":"3086",
    "height": "6'4\"",
    "search_full_name": "tombrady",
    "age": 40,
    "stats_id": "",
    "birth_country": "United States",
    "espn_id": "",
    "search_rank": 24,
    "first_name": "Tom",
    "depth_chart_order": 1,
    "years_exp": 14,
    "rotowire_id": null,
    "rotoworld_id": 8356,
    "search_first_name": "tom",
    "yahoo_id": null
  },
  ...
}

Actual:

['3992', '6744', '1591', '918', '4810', '4910', ...]
ianpittwood commented 8 months ago

@AdamCurtisVT wow dude, you're quick! Thank you! I pulled the latest version and this is working as expected.