diff --git a/webapp/dto.py b/webapp/dto.py index fe0d3d5..09d729b 100644 --- a/webapp/dto.py +++ b/webapp/dto.py @@ -236,6 +236,7 @@ def __init__( code: str, checked: str, sent: str, + ip: str, student: Student | None ): self.status = status @@ -243,6 +244,7 @@ def __init__( self.checked = checked self.sent = sent self.student = student + self.ip = ip class GroupInRatingDto: diff --git a/webapp/managers.py b/webapp/managers.py index 063d707..d626c2a 100644 --- a/webapp/managers.py +++ b/webapp/managers.py @@ -285,7 +285,7 @@ def __get_submissions( output=check.output, status=check.status, achievements=[] - ), []), message.code, check.time, message.time, student) + ), []), message.code, check.time, message.time, message.ip, student) def __get_task_status_dto( self, diff --git a/webapp/templates/teacher/submissions.jinja b/webapp/templates/teacher/submissions.jinja index 3f855c1..908c3c3 100644 --- a/webapp/templates/teacher/submissions.jinja +++ b/webapp/templates/teacher/submissions.jinja @@ -31,6 +31,7 @@ {{ submission.status.name }} Отправлено: {{ submission.sent.strftime('%d.%m.%Y %H:%M') }} Проверено: {{ submission.checked.strftime('%d.%m.%Y %H:%M') }} + IP: {{ submission.ip }} {% if submission.status.error_message is not none and submission.status.error_message %}
Подробные сведения об ошибке: