Skip to content

Commit

Permalink
Fix podium events order
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Aug 5, 2024
1 parent 954705d commit 526ff36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/wca_live/scoretaking.ex
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,9 @@ defmodule WcaLive.Scoretaking do
|> Repo.all()
|> Repo.preload(rounds: :results)

Enum.map(competition_events, fn competition_event ->
competition_events
|> Enum.sort_by(&Event.get_rank_by_id!(&1.event_id))
|> Enum.map(fn competition_event ->
final_round = Enum.max_by(competition_event.rounds, & &1.number)

podium_results =
Expand Down

0 comments on commit 526ff36

Please sign in to comment.