Update app.R
Browse files
app.R
CHANGED
|
@@ -9,6 +9,8 @@ library(rtabulator)
|
|
| 9 |
library(purrr)
|
| 10 |
library(arrow)
|
| 11 |
|
|
|
|
|
|
|
| 12 |
download_private_csv <- function(repo_id, filename) {
|
| 13 |
url <- paste0("https://huggingface.co/datasets/", repo_id, "/resolve/main/", filename)
|
| 14 |
response <- GET(url, add_headers(Authorization = paste("Bearer", Sys.getenv("GETCSV"))))
|
|
@@ -368,7 +370,7 @@ ui <- fluidPage(
|
|
| 368 |
style = "height: 100%; padding: 10px; background-color: #f8f9fa; border-right: 1px solid #dee2e6;",
|
| 369 |
p("X: ", a("(@TimStats)", href = "https://twitter.com/timstats")),
|
| 370 |
p("Data Contains 2020-2025"),
|
| 371 |
-
p("Data Updated To:",
|
| 372 |
p("Please avoid large multi-year, multi-league queries as they tend to crash the app"),
|
| 373 |
p("Arm Angle for the previous week will populate on Mondays, bat speed is a daily update"),
|
| 374 |
|
|
@@ -392,7 +394,7 @@ ui <- fluidPage(
|
|
| 392 |
),
|
| 393 |
dateRangeInput("date_range", "Date Range:",
|
| 394 |
start = "2025-03-18",
|
| 395 |
-
end =
|
| 396 |
#min = "2024-02-23",
|
| 397 |
max = Sys.Date() - 1
|
| 398 |
)
|
|
|
|
| 9 |
library(purrr)
|
| 10 |
library(arrow)
|
| 11 |
|
| 12 |
+
updatedDate <- Sys.Date() - 1
|
| 13 |
+
|
| 14 |
download_private_csv <- function(repo_id, filename) {
|
| 15 |
url <- paste0("https://huggingface.co/datasets/", repo_id, "/resolve/main/", filename)
|
| 16 |
response <- GET(url, add_headers(Authorization = paste("Bearer", Sys.getenv("GETCSV"))))
|
|
|
|
| 370 |
style = "height: 100%; padding: 10px; background-color: #f8f9fa; border-right: 1px solid #dee2e6;",
|
| 371 |
p("X: ", a("(@TimStats)", href = "https://twitter.com/timstats")),
|
| 372 |
p("Data Contains 2020-2025"),
|
| 373 |
+
p("Data Updated To:", updatedDate),
|
| 374 |
p("Please avoid large multi-year, multi-league queries as they tend to crash the app"),
|
| 375 |
p("Arm Angle for the previous week will populate on Mondays, bat speed is a daily update"),
|
| 376 |
|
|
|
|
| 394 |
),
|
| 395 |
dateRangeInput("date_range", "Date Range:",
|
| 396 |
start = "2025-03-18",
|
| 397 |
+
end = updatedDate,
|
| 398 |
#min = "2024-02-23",
|
| 399 |
max = Sys.Date() - 1
|
| 400 |
)
|