Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -162,8 +162,8 @@ def server(input,output,session):
|
|
162 |
return 'Select a Player'
|
163 |
|
164 |
player_input = int(input.player_id())
|
165 |
-
season_1 = max(
|
166 |
-
season_2 = min(
|
167 |
|
168 |
if season_1 < season_2:
|
169 |
season_pick = [season_1,season_2]
|
|
|
162 |
return 'Select a Player'
|
163 |
|
164 |
player_input = int(input.player_id())
|
165 |
+
season_1 = max(int(df['year'].min()),int(input.season_1()))
|
166 |
+
season_2 = min(int(df['year'].max()),int(input.season_2()))
|
167 |
|
168 |
if season_1 < season_2:
|
169 |
season_pick = [season_1,season_2]
|