notice but without the t
This commit is contained in:
@ -9,7 +9,7 @@ from django.utils.translation import gettext as _
|
||||
from games.models import GameModel
|
||||
from games.serializers import GameSerializer
|
||||
from profiles.models import ProfileModel
|
||||
from profiles.serializers.ProfileSerializer import ProfileSerializer
|
||||
from profiles.serializers import ProfileSerializer
|
||||
from .models import TournamentModel
|
||||
|
||||
import json
|
||||
@ -228,4 +228,4 @@ class TournamentWebConsumer(WebsocketConsumer):
|
||||
|
||||
self.room.leave(self.member)
|
||||
|
||||
super().disconnect(close_code) # proutman à encore frappé
|
||||
super().disconnect(close_code) # proutman à encore frappé
|
||||
|
@ -2,7 +2,7 @@ from rest_framework import serializers
|
||||
|
||||
from .models import TournamentModel, TournamentGameModel
|
||||
|
||||
from profiles.serializers.ProfileSerializer import ProfileSerializer
|
||||
from profiles.serializers import ProfileSerializer
|
||||
from games.serializers import GameSerializer
|
||||
|
||||
nb_participants = [2 ** i for i in range(2, 6)]
|
||||
@ -58,4 +58,4 @@ class TournamentGameSerializer(serializers.ModelSerializer):
|
||||
return "waiting"
|
||||
|
||||
def get_players(self, instance: TournamentGameModel):
|
||||
return ProfileSerializer(instance.get_players_profiles(), many=True).data
|
||||
return ProfileSerializer(instance.get_players_profiles(), many=True).data
|
||||
|
Reference in New Issue
Block a user