# Recalculate\_subsection\_grade\_v3 is submitted with the wrong user\_id

**URL:** <https://discuss.openedx.org/t/recalculate-subsection-grade-v3-is-submitted-with-the-wrong-user-id/17873>\
**Category:** Development\
**Created:** [December 17, 2025, 1:42pm UTC](https://discuss.openedx.org/t/recalculate-subsection-grade-v3-is-submitted-with-the-wrong-user-id/17873 "2025-12-17T13:42:53Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Muhammad\_Arslan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/muhammad_arslan/32/9168_2.png) [@Muhammad\_Arslan](https://discuss.openedx.org/u/Muhammad_Arslan)\
**Post date:** [December 29, 2025, 4:54pm UTC](https://discuss.openedx.org/t/recalculate-subsection-grade-v3-is-submitted-with-the-wrong-user-id/17873/12 "2025-12-29T16:54:59Z")

</div>

@Asad_Ali have reproduced the issue locally and by following those steps I was also able to reproduce it. Here are the steps:

1. Create 2 courses with simple problem and 2 learners. Enroll 1 learner to 1 course and another learner to different course
2. To be sure that we are submitting problems at the same time, add a breakpoint after the [instance creation in block\_render.py](https://github.com/openedx/edx-platform/blob/master/lms/djangoapps/courseware/block_render.py#L880)
3. Now open 2 browsers/windows and login with the learners.
4. Open the courses and problems.
5. Attach with the LMS container to bypass the breakpoints when we submit the answers, e.g; `tutor dev start lms`
6. Submit the answers with both the users and bypass the breakpoint by entering `c` twice
7. 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.

@dave

---

_[View the full topic](https://discuss.openedx.org/t/recalculate-subsection-grade-v3-is-submitted-with-the-wrong-user-id/17873)._
