Small fix in server
This commit is contained in:
parent
52c85f0ed7
commit
bcd9206340
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -64,7 +64,7 @@ def game(request):
|
|||||||
"""
|
"""
|
||||||
Returns fair team composition for a given list of players
|
Returns fair team composition for a given list of players
|
||||||
"""
|
"""
|
||||||
player_ids = request.data.getlist("players")
|
player_ids = request.GET.getlist("players")
|
||||||
players = list()
|
players = list()
|
||||||
failed = False
|
failed = False
|
||||||
for player in player_ids:
|
for player in player_ids:
|
||||||
@ -123,7 +123,7 @@ def game(request):
|
|||||||
team1 = group1[::2] + group2[1::2]
|
team1 = group1[::2] + group2[1::2]
|
||||||
team2 = group2[::2] + group1[1::2]
|
team2 = group2[::2] + group1[1::2]
|
||||||
|
|
||||||
return Response({team1, team2})
|
return Response((team1, team2), status=status.HTTP_200_OK)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user