Spaces:
Sleeping
Sleeping
Update app.R
Browse files
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") {
|