nesticot commited on
Commit
a021bef
·
verified ·
1 Parent(s): df5f89d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(2015,int(input.season_1()))
166
- season_2 = min(2023,int(input.season_2()))
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]