Skip to content

Commit fd38ecf

Browse files
committed
Web: Use same order for services in scoreboard.json and status.json
This way teams can scrape them and correlate the output from both.
1 parent e3d04f3 commit fd38ecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ctf_gameserver/web/scoring/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def scoreboard_json(_):
3737
scores = calculations.scores(['team', 'team__user', 'service'],
3838
['team__image', 'team__user__username', 'service__name'])
3939
statuses = calculations.team_statuses(to_tick, to_tick, only_team_fields=['user_id'])
40-
services = models.Service.objects.all()
40+
services = models.Service.objects.all().order_by('name')
4141

4242
response = {
4343
'tick': to_tick,

0 commit comments

Comments
 (0)