Skip to content

Commit 839e93b

Browse files
committed
FIX: Error in player_stats_data on missing MLB Debut Date #49
REM: Remove Python 2.7 from setup.py in prep for dropped support
1 parent 83e35ce commit 839e93b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
install_requires=["requests"],
1818
classifiers=[
1919
"Programming Language :: Python",
20-
"Programming Language :: Python :: 2.7",
2120
"Programming Language :: Python :: 3",
2221
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2322
"Operating System :: OS Independent",

statsapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ def player_stat_data(personId, group="[hitting,pitching,fielding]", type="season
11201120
"position": r["people"][0]["primaryPosition"]["abbreviation"],
11211121
"nickname": r["people"][0].get("nickName"),
11221122
"last_played": r["people"][0].get("lastPlayedDate"),
1123-
"mlb_debut": r["people"][0]["mlbDebutDate"],
1123+
"mlb_debut": r["people"][0].get("mlbDebutDate"),
11241124
"bat_side": r["people"][0]["batSide"]["description"],
11251125
"pitch_hand": r["people"][0]["pitchHand"]["description"],
11261126
}

statsapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22

3-
VERSION = "1.0.0"
3+
VERSION = "1.0.1"

0 commit comments

Comments
 (0)