Skip to content

Commit

Permalink
Fix round order in record tag assignment
Browse files Browse the repository at this point in the history
This caused PR tags being assigned to all results in a round
in rare cases.
  • Loading branch information
jonatanklosko committed Dec 22, 2024
1 parent d29ac6e commit 5f546f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wca_live/scoretaking/record_tags.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule WcaLive.Scoretaking.RecordTags do
competition_event
|> Repo.preload(rounds: [:competition_event, results: [person: [:personal_bests]]])

rounds = competition_event.rounds
rounds = Enum.sort_by(competition_event.rounds, & &1.number)
event_id = competition_event.event_id

regional_records = Wca.RecordsStore.get_regional_records_map()
Expand Down

0 comments on commit 5f546f5

Please sign in to comment.