patrickramos commited on
Commit
7e1973f
·
1 Parent(s): 1b93929

Edit daily/weekly leaderboards

Browse files
Files changed (1) hide show
  1. daily_weekly_leaderboard.py +4 -4
daily_weekly_leaderboard.py CHANGED
@@ -34,10 +34,10 @@ def filter_pitcher_leaderboard_by_date(date, *args, **kwargs):
34
  return (
35
  f'<center><h1>Daily Leaderboard<h1><h2>{date.strftime("%B %d, %Y")}</h2><h3>{date.strftime("%A")}</h3></center>',
36
  f'<center><h1>Weekly Leaderboard<h1><h2>{monday.strftime("%B %d, %Y")} to {sunday.strftime("%B %d, %Y")}</h2><h3>{monday.strftime("%A")} to {sunday.strftime("%A")}</h3></center>',
37
- daily_whiffs,
38
- daily_velos,
39
- weekly_whiffs,
40
- weekly_velos,
41
  *plot_tables(daily_whiffs, daily_velos, 'Daily', f'{date.strftime("%B %d, %Y")}\n{date.strftime("%A")}'),
42
  *plot_tables(weekly_whiffs, weekly_velos, 'Weekly', f'{monday.strftime("%B %d, %Y")} to {sunday.strftime("%B %d, %Y")}\n{monday.strftime("%A")} to {sunday.strftime("%A")}'),
43
  gr.update(interactive=True),
 
34
  return (
35
  f'<center><h1>Daily Leaderboard<h1><h2>{date.strftime("%B %d, %Y")}</h2><h3>{date.strftime("%A")}</h3></center>',
36
  f'<center><h1>Weekly Leaderboard<h1><h2>{monday.strftime("%B %d, %Y")} to {sunday.strftime("%B %d, %Y")}</h2><h3>{monday.strftime("%A")} to {sunday.strftime("%A")}</h3></center>',
37
+ daily_whiffs.drop('Team'),
38
+ daily_velos.drop('Team'),
39
+ weekly_whiffs.drop('Team'),
40
+ weekly_velos.drop('Team'),
41
  *plot_tables(daily_whiffs, daily_velos, 'Daily', f'{date.strftime("%B %d, %Y")}\n{date.strftime("%A")}'),
42
  *plot_tables(weekly_whiffs, weekly_velos, 'Weekly', f'{monday.strftime("%B %d, %Y")} to {sunday.strftime("%B %d, %Y")}\n{monday.strftime("%A")} to {sunday.strftime("%A")}'),
43
  gr.update(interactive=True),