Update app.py
Browse files
app.py
CHANGED
|
@@ -440,7 +440,7 @@ def server(input, output, session):
|
|
| 440 |
@render.data_frame
|
| 441 |
def season_stats():
|
| 442 |
|
| 443 |
-
if int(input.
|
| 444 |
season = int(str(input.date_input())[:4])
|
| 445 |
url_season = url = f"""
|
| 446 |
https://www.fangraphs.com/api/leaders/major-league/data?age=&pos=all&stats=pit&lg=all&season={season}&season1={season}
|
|
|
|
| 440 |
@render.data_frame
|
| 441 |
def season_stats():
|
| 442 |
|
| 443 |
+
if int(input.level_input()) == 1:
|
| 444 |
season = int(str(input.date_input())[:4])
|
| 445 |
url_season = url = f"""
|
| 446 |
https://www.fangraphs.com/api/leaders/major-league/data?age=&pos=all&stats=pit&lg=all&season={season}&season1={season}
|