TimStats commited on
Commit
f077cc9
·
verified ·
1 Parent(s): 2317274

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +1 -1
app.R CHANGED
@@ -226,7 +226,7 @@ server <- function(input, output, session) {
226
  pitch_level_data <- reactiveVal()
227
 
228
  observeEvent(input$submit, {
229
- season <- format(input$date, "%Y")
230
  if (input$level == "MLB") {
231
  data(mlb_schedule(season = season, level_ids = "1"))
232
  } else if (input$level == "AAA") {
 
226
  pitch_level_data <- reactiveVal()
227
 
228
  observeEvent(input$submit, {
229
+ season <- format(input$date[1], "%Y")
230
  if (input$level == "MLB") {
231
  data(mlb_schedule(season = season, level_ids = "1"))
232
  } else if (input$level == "AAA") {