Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -772,7 +772,7 @@ def server(input, output, session):
|
|
| 772 |
|
| 773 |
}
|
| 774 |
|
| 775 |
-
if sport_id != 17
|
| 776 |
fg_api = f'https://www.fangraphs.com/api/leaders/minor-league/data?pos=all&level={levelt[sport_id]}&lg={lg_dict[sport_id]}&stats=pit&qual=0&type=2&team=&season={year}&seasonEnd={year}&org=&ind=0&splitTeam=false'
|
| 777 |
response = requests.get(fg_api)
|
| 778 |
data = response.json()
|
|
|
|
| 772 |
|
| 773 |
}
|
| 774 |
|
| 775 |
+
if sport_id != 17 and int(sport_id) != 1:
|
| 776 |
fg_api = f'https://www.fangraphs.com/api/leaders/minor-league/data?pos=all&level={levelt[sport_id]}&lg={lg_dict[sport_id]}&stats=pit&qual=0&type=2&team=&season={year}&seasonEnd={year}&org=&ind=0&splitTeam=false'
|
| 777 |
response = requests.get(fg_api)
|
| 778 |
data = response.json()
|