Skip to content

Commit 7a5692f

Browse files
committed
enh: add nameSlug to lookup_player
1 parent 01fa3b2 commit 7a5692f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statsapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ def lookup_player(lookup_value, gameType=None, season=None, sportId=1):
12191219
"""Get data about players based on first, last, or full name."""
12201220
params = {
12211221
"sportId": sportId,
1222-
"fields": "people,id,fullName,firstName,lastName,primaryNumber,currentTeam,id,primaryPosition,code,abbreviation,useName,boxscoreName,nickName,mlbDebutDate,nameFirstLast,firstLastName,lastFirstName,lastInitName,initLastName,fullFMLName,fullLFMName",
1222+
"fields": "people,id,fullName,firstName,lastName,primaryNumber,currentTeam,id,primaryPosition,code,abbreviation,useName,boxscoreName,nickName,mlbDebutDate,nameFirstLast,firstLastName,lastFirstName,lastInitName,initLastName,fullFMLName,fullLFMName,nameSlug",
12231223
}
12241224
if gameType:
12251225
params.update(

0 commit comments

Comments
 (0)