Skip to content

Commit

Permalink
time should always be recoreded, not just for when answers present
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Jul 12, 2024
1 parent e54463d commit aaa793d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ server <- function(input, output, session) {
}
}

.MCE[[sessionName]]$person$item_time[pick] <- min(diff_item_time,
ifelse(.MCE[[sessionName]]$shinyGUI$timer[pick] > 0,
.MCE[[sessionName]]$shinyGUI$timer[pick], Inf))
.MCE[[sessionName]]$start_time <- NULL

#update Thetas
.MCE[[sessionName]]$design@Update.thetas(design=.MCE[[sessionName]]$design,
person=.MCE[[sessionName]]$person, test=.MCE[[sessionName]]$test)
Expand Down Expand Up @@ -305,6 +300,13 @@ server <- function(input, output, session) {
.MCE[[sessionName]]$person$valid_item[pick] <- FALSE
}
}

# always record
.MCE[[sessionName]]$person$item_time[pick] <- min(diff_item_time,
ifelse(.MCE[[sessionName]]$shinyGUI$timer[pick] > 0,
.MCE[[sessionName]]$shinyGUI$timer[pick], Inf))
.MCE[[sessionName]]$start_time <- NULL

}

printDebug("Reset item")
Expand Down

0 comments on commit aaa793d

Please sign in to comment.