MarisiaS / SMM

0 stars 0 forks source link

BE-Event Result Display #77

Open MarisiaS opened 5 months ago

MarisiaS commented 5 months ago

This PR address issue #59

Implementation

  1. backend/api/CustomFilter.py

Created an auxiliar function to filter by group

  1. backend/api/serializers/EventResultSerializer.py

Based on Head Model, displays id, athlete, athlete_full_name, and heat_time

  1. backend/api/views/EventResultView.py

Uses EventResultSerializer and, given an event, displays all the results of the event ordered by heat_time. Filtering by group is possible.

  1. backend/api/urls.py

    The endpoint event_result/<int:event_id>/ was added. Uses EventResultView.