Skip to content

Commit 5a4da47

Browse files
authored
Merge pull request #23 from ss77995ss/bugfix/statcast-leaderboard-season-params-issue
[Bugfix] Fix statcast leaderboard using the wrong season param issue
2 parents c5a3deb + 821e70c commit 5a4da47

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@ jobs:
3333
run: |
3434
python -m pip install --upgrade pip
3535
pip install ruff
36-
- uses: chartboost/ruff-action@v1
36+
- uses: astral-sh/ruff-action@v3
3737
with:
3838
args: 'check'
39-
- uses: chartboost/ruff-action@v1
40-
with:
41-
args: 'format --check'
4239

4340
build:
4441
name: Build distribution 📦

src/baseball_stats_python/statcast/catcher_throwing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ def catcher_throwing(
4343
)
4444

4545
params = {
46-
'gameType': game_type,
47-
'season': season,
46+
'game_type': game_type,
47+
'season_start': season,
48+
'season_end': season,
4849
'n': 0,
4950
}
5051

src/baseball_stats_python/statcast/runner_basestealing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def runner_basestealing(
6565

6666
params = {
6767
'game_type': game_type,
68-
'season': season,
68+
'season_start': season,
69+
'season_end': season,
6970
'n': 0,
7071
'pitch_hand': get_hand_param_str(pitch_hand),
7172
'prior_pk': get_prior_pk_param_str(prior_pk),

0 commit comments

Comments
 (0)