fix
This commit is contained in:
parent
98ec43e7b9
commit
35a2f273f9
@ -14,7 +14,7 @@ class GameModel(models.Model):
|
|||||||
return self.pk
|
return self.pk
|
||||||
|
|
||||||
def get_players_id(self):
|
def get_players_id(self):
|
||||||
return [game_member.member_id for game_member in GameMembersModel.objects.filter(self.pk)]
|
return [game_member.member_id for game_member in GameMembersModel.objects.filter(game_id = self.pk)]
|
||||||
|
|
||||||
class GameMembersModel(models.Model):
|
class GameMembersModel(models.Model):
|
||||||
game_id = models.IntegerField()
|
game_id = models.IntegerField()
|
||||||
|
@ -144,7 +144,7 @@ class TournamentRoomManager(AbstractRoomManager):
|
|||||||
if (room.tournament_id == tournament_id):
|
if (room.tournament_id == tournament_id):
|
||||||
return room
|
return room
|
||||||
|
|
||||||
if (TournamentModel.objects.filter(pk = tournament_id, finished=False).exists()):
|
if (TournamentModel.objects.filter(pk = tournament_id).exists()):
|
||||||
room = TournamentRoom(self, tournament_id)
|
room = TournamentRoom(self, tournament_id)
|
||||||
self.append(room)
|
self.append(room)
|
||||||
return room
|
return room
|
||||||
|
Loading…
Reference in New Issue
Block a user