From 0f856060bb0d6c751517da19303da8ac86b59e1b Mon Sep 17 00:00:00 2001 From: Timur Date: Tue, 4 Mar 2025 02:21:03 +0300 Subject: [PATCH] add position field to competition results --- services/backend/api/v1/task/schemas.py | 1 + services/backend/api/v1/task/views.py | 1 + 2 files changed, 2 insertions(+) diff --git a/services/backend/api/v1/task/schemas.py b/services/backend/api/v1/task/schemas.py index 95f2fb4..ec8d80a 100644 --- a/services/backend/api/v1/task/schemas.py +++ b/services/backend/api/v1/task/schemas.py @@ -68,3 +68,4 @@ class TaskStatusSchema(Schema): task_name: str result: int max_points: int + position: int diff --git a/services/backend/api/v1/task/views.py b/services/backend/api/v1/task/views.py index a0ce64c..6cf535d 100644 --- a/services/backend/api/v1/task/views.py +++ b/services/backend/api/v1/task/views.py @@ -210,6 +210,7 @@ def get_competition_results(request, competition_id: UUID): task_name=task.title, result=result, max_points=task.points, + position=task.in_competition_positions )) return status.OK, data