JuezUN / INGInious

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.
https://juezun.github.io
Other
9 stars 7 forks source link

Bugs on plagiarism check #527

Closed VirtualDiegox closed 1 year ago

VirtualDiegox commented 1 year ago

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: