Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Timer Stop #42

Closed
wants to merge 1 commit into from
Closed

Item Timer Stop #42

wants to merge 1 commit into from

Conversation

MagnusNordmo
Copy link
Contributor

Changed the criteria for stopping the item time GUI. During adaptive test the person$terminated_sucessfully does not == T until the test is closed. If you use an adaptive test and reach the lastpage, the itemtime continous to run. Please let me know if i am not making any sense and you need a reproducible example of this.

Also please not that this solves the problem with the itemtime, but I am not certain that it doesnt crash something else... Does it make sense from your perspective?
Sincerely
Magnus Nordmo

Changed the criteria for stopping the item time GUI. During adaptive test the person$terminated_sucessfully does not = T until the test is closed. If you use an adaptive test and reach the lastpage, the itemtimer continous to run.
@MagnusNordmo MagnusNordmo changed the title Update server.R Item Timer Stop Nov 4, 2021
@@ -50,7 +50,7 @@ server <- function(input, output, session) {
output$itemTime <- renderText({
printDebug("itemTime", 3)
invalidateLater(200, session)
if(.MCE[[sessionName]]$person$terminated_sucessfully)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be changed to if(.MCE[[sessionName]]$person$terminated_sucessfully || .MCE[[sessionName]]$STOP) to avoid breaking the previous code, but also allowing for the STOP state to be checked. I'll merge it after this change is added!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good idea. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants