TimStats commited on
Commit
36b67ea
·
verified ·
1 Parent(s): 00eb37c

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -2
app.R CHANGED
@@ -10,6 +10,8 @@ library(patchwork) # For combining plots
10
  library(jsonlite)
11
  library(arrow)
12
 
 
 
13
  check_patreon_access <- function(email) {
14
  campaign_id <- Sys.getenv("PATREON_CAMPAIGN_ID")
15
  access_token <- Sys.getenv("PATREON_ACCESS_TOKEN")
@@ -285,12 +287,12 @@ is_authenticated <- reactiveVal(FALSE)
285
  card(
286
  selectInput("hand1", "Batter Handedness", choices = c("All Batters","LHH","RHH")),
287
  selectInput("pitch1", "Pitch:", choices = c("")),
288
- dateRangeInput("date1", "Date Range:", start = "2025-03-15", end = Sys.Date() - 1)
289
  ),
290
  card(
291
  selectInput("hand2", "Batter Handedness", choices = c("All Batters","LHH","RHH")),
292
  selectInput("pitch2", "Pitch:", choices = c("")),
293
- dateRangeInput("date2", "Date Range:", start = "2025-03-15", end = Sys.Date() - 1)
294
  )
295
  )
296
  ),
 
10
  library(jsonlite)
11
  library(arrow)
12
 
13
+ updatedDate <- Sys.Date() - 1
14
+
15
  check_patreon_access <- function(email) {
16
  campaign_id <- Sys.getenv("PATREON_CAMPAIGN_ID")
17
  access_token <- Sys.getenv("PATREON_ACCESS_TOKEN")
 
287
  card(
288
  selectInput("hand1", "Batter Handedness", choices = c("All Batters","LHH","RHH")),
289
  selectInput("pitch1", "Pitch:", choices = c("")),
290
+ dateRangeInput("date1", "Date Range:", start = "2025-03-15", end = updatedDate)
291
  ),
292
  card(
293
  selectInput("hand2", "Batter Handedness", choices = c("All Batters","LHH","RHH")),
294
  selectInput("pitch2", "Pitch:", choices = c("")),
295
+ dateRangeInput("date2", "Date Range:", start = "2025-03-15", end = updatedDate)
296
  )
297
  )
298
  ),