@Asad_Ali have reproduced the issue locally and by following those steps I was also able to reproduce it. Here are the steps:
- Create 2 courses with simple problem and 2 learners. Enroll 1 learner to 1 course and another learner to different course
- To be sure that we are submitting problems at the same time, add a breakpoint after the instance creation in block_render.py
- Now open 2 browsers/windows and login with the learners.
- Open the courses and problems.
- Attach with the LMS container to bypass the breakpoints when we submit the answers, e.g;
tutor dev start lms - Submit the answers with both the users and bypass the breakpoint by entering
ctwice - Thats it, you will have 1 learner scored correctly in his enrolled course and the same learner will be scored in the other course as well. And its always the 2nd request’s user.
Additional Information:
I am able to reproduce this issue in release/teak as well by following the same steps.