Skip to content

Commit 9325e5d

Browse files
committed
Bouton "actualiser le classement" ajouté dans l'app shiny de challenge
1 parent 447901c commit 9325e5d

File tree

1 file changed

+4
-1
lines changed
  • inst/shiny/C03Sa_challenge

1 file changed

+4
-1
lines changed

inst/shiny/C03Sa_challenge/app.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ ui <- fluidPage(
109109
sidebarLayout(
110110
sidebarPanel(
111111
fileInput("file", "Votre proposition (fichier RDS)", accept = ".rds"),
112-
textOutput("message")
112+
textOutput("message"),
113+
hr(),
114+
actionButton("refresh", "Actualiser le classement")
113115
),
114116
mainPanel(
115117
h3("Temps restant pour le challenge :"),
@@ -152,6 +154,7 @@ server <- function(input, output) {
152154
})
153155

154156
output$ranking <- renderTable({
157+
input$refresh # Trigger this code when the refresh button is clicked
155158
file <- input$file
156159
if (!is.null(file$datapath) && grepl("^.+__.+\\.rds", file$name) &&
157160
!is_done()) {

0 commit comments

Comments
 (0)