Skip to content

Commit

Permalink
fix: don't reorder results when they are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
brownben committed Mar 22, 2024
1 parent 3438938 commit d379f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/database/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def get_by_competitor(competitor: int) -> Iterable[ResultWithEventName]:
*results_fields, ResultTable.event.name.as_alias("event_name")
)
.where(ResultTable.competitor == competitor)
.order_by(ResultTable.event.date)
.order_by(ResultTable.event.date, Result.id)
.run()
)

Expand Down

0 comments on commit d379f68

Please sign in to comment.