guipenedo / python-judge-xblock

An open edx XBlock to evaluate/automatically grade students' python code
0 stars 0 forks source link

Add Cohort to Submissions Table #1

Closed diogotcorreia closed 3 years ago

diogotcorreia commented 3 years ago

Steps to add the cohort to the submissions table

Fetch cohort for user https://github.com/guipenedo/python-judge-xblock/blob/ba2d17f4a2421e3cbcedc13073cd0317158836ce/pythonjudge/pythonjudge.py#L414

Add Cohort header https://github.com/guipenedo/python-judge-xblock/blob/ba2d17f4a2421e3cbcedc13073cd0317158836ce/pythonjudge/templates/pyjudge_student.html#L51

Add cohort value https://github.com/guipenedo/python-judge-xblock/blob/ba2d17f4a2421e3cbcedc13073cd0317158836ce/pythonjudge/templates/pyjudge_student.html#L61


Useful Resources

https://github.com/edx/edx-platform/blob/151bd136667d27bf85256e382ed5b5ea0144e00f/openedx/core/djangoapps/course_groups/cohorts.py#L238

guipenedo commented 3 years ago

Closed with https://github.com/guipenedo/python-judge-xblock/commit/5288321f58959896503ea5b0c1a32a879c22a1a4 and https://github.com/guipenedo/python-judge-xblock/commit/a547df1a8d404bcc73cda274c086000acb2d10b8