Skip to content

Commit

Permalink
enh: add default value to get() params parameter #145
Browse files Browse the repository at this point in the history
  • Loading branch information
toddrob99 committed Oct 26, 2024
1 parent 44dae4e commit 1a5607b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ def notes(endpoint):
return msg


def get(endpoint, params, force=False):
def get(endpoint, params={}, force=False):
"""Call MLB StatsAPI and return JSON data.
This function is for advanced querying of the MLB StatsAPI,
Expand Down

0 comments on commit 1a5607b

Please sign in to comment.