nesticot commited on
Commit
57f53bc
·
verified ·
1 Parent(s): 447db7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -316,6 +316,8 @@ def server(input, output, session):
316
 
317
  df_plot = df_plot[df_plot['batter_hand'].isin(split_dict_hand[input.split_id()])]
318
 
 
 
319
  if input.count_id_balls()=='greater' and input.count_id_strikes()=='greater' and int(input.ball_id())==0 and int(input.strike_id())==0:
320
  ball_title = ''
321
  strike_title = ''
 
316
 
317
  df_plot = df_plot[df_plot['batter_hand'].isin(split_dict_hand[input.split_id()])]
318
 
319
+ df_plot = df_plot.sort_values(by=['start_time'])
320
+
321
  if input.count_id_balls()=='greater' and input.count_id_strikes()=='greater' and int(input.ball_id())==0 and int(input.strike_id())==0:
322
  ball_title = ''
323
  strike_title = ''