Skip to content

Commit

Permalink
Remove plagiarism SVG graph rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Oct 9, 2024
1 parent 3ece8c2 commit aed1db1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/views/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,10 @@ def task_detail(request, assignment_id, submit_num=None, login=None):

moss_res = moss_result(current_submit.assignment.task.id)
if moss_res and (user_is_teacher or moss_res.opts.show_to_students):
svg = moss_res.to_svg(
login=current_submit.student.username, anonymize=not user_is_teacher
)
svg = None
# moss_res.to_svg(
# login=current_submit.student.username, anonymize=not user_is_teacher
# )
if svg:
data["has_pipeline"] = True

Expand All @@ -324,7 +325,6 @@ def task_detail(request, assignment_id, submit_num=None, login=None):
if is_teacher(request.user):
if not moss_res.opts.show_to_students:
prepend = "<div class='text-muted'>Not shown to students</div>"
prepend += f'<a href="/teacher/task/{current_submit.assignment.task_id}/moss">Change thresholds</a>'

res.html = f"""
{prepend}
Expand Down

0 comments on commit aed1db1

Please sign in to comment.