Add Performance Data to unlinked data #235
Unanswered
slussinator
asked this question in
Alfred Q&A
Replies: 1 comment 1 reply
-
Hey @slussinator, I might have been wrong about the adequate hooks in my reply to your question #233. It seems to me that your code is correct, but the attention check page's on_close() hook has not been executed. According to the documentation, I think that regular sections do not close their questions on leaving. You should try to replace on_close() with on_first_hide() and see if this already solves the problem. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Community,
this is a follow-up question regarding the performance-contingent payout. Thanks to @ctreffe 's help I managed to save how many correct answers each participant saved. Now I need to attach this number to the unlinked data in order to be able to pay out the correct amount. I tried to do this with an extra page (PayoutCalc) at the end, which reads the score for each participant and calculates a payout from this score, which is then added to the additional data.
For some reason calculating the payout does not work. I keep getting this error message:
"TypeError: '<=' not supported between instances of 'NoneType' and 'int'
Not sure why my attention check score is of "NoneType", and don't know how to change it.
Attached find once again a minimal experiment replicating my problem.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions