UNCode is an online platform for frequent practice and automatic evaluation of computer programming, Jupyter Notebooks and hardware description language (VHDL/Verilog) assignments. Also provides a pluggable interface with your existing LMS.
This PR solves a bug related with submissions with is_staff parameter when a plagiarism check is created, this submissions have this parameter only if they are replayed submissions by a staff user, so this function in charge to find the problem id was returning is_staff key parameter because this new parameter broke the logic of the filter function, so we add a new filter in the function to avoid that. Also the traceback is now returned in string in order to debug more effectively. A key error is fixed too on plagiarism main page if an old plagiarism check has a language not currently supported.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
This was tested on my own development environment, doing plagiarism checks with replayed submissions.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
Description
This PR solves a bug related with submissions with is_staff parameter when a plagiarism check is created, this submissions have this parameter only if they are replayed submissions by a staff user, so this function in charge to find the problem id was returning is_staff key parameter because this new parameter broke the logic of the filter function, so we add a new filter in the function to avoid that. Also the traceback is now returned in string in order to debug more effectively. A key error is fixed too on plagiarism main page if an old plagiarism check has a language not currently supported.
Type of change
How Has This Been Tested?
This was tested on my own development environment, doing plagiarism checks with replayed submissions.
Checklist: