Closed davidszkiba closed 1 year ago
@davidszkiba Hi David,
This requires some in-depth look, I'll look into what's happening there closely, thanks for the details.
@davidszkiba the changes have been pushed to both catmodel_subplugins branches, the error should not be apeearing any more.
@vtos Hi Vitaly!
I'm implementing a catmodel subplugin according to your latest changes and it's working great so far, but I came across an issue. In this subplugin, it can happen that not a single question is applicable. In such a case, the quiz attempt stops without any question being shown to the user. However, when such empty attempts happen more than once, I get an error about duplicate values in the database when the attempt is finished:
I think the reason is as follows: If I return a stoppage reason in my
item_administration
immediately, even before a single question is returned, there will be an entry in theadaptivequiz_attempt
database table with auniqueid
of0
. If I repeat this in another attempt, a second entry with auniqueid
of0
will be stored in the database.Do you plan to update the code so that "empty attempts" are possible or do you have any suggestion how I can get rid of this error?
Thanks