fix send all info
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
# By: tomoron <tomoron@student.42.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2024/10/04 17:17:07 by tomoron #+# #+# #
|
# Created: 2024/10/04 17:17:07 by tomoron #+# #+# #
|
||||||
# Updated: 2024/10/05 02:35:50 by tomoron ### ########.fr #
|
# Updated: 2024/10/05 02:58:08 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ class Tournament:
|
|||||||
def sendAllInfo(self, socket):
|
def sendAllInfo(self, socket):
|
||||||
players = []
|
players = []
|
||||||
for x in self.players:
|
for x in self.players:
|
||||||
players.append({"id":socket.id,"username":socket.username, "pfp":socket.pfp})
|
players.append({"id":x.id,"username":x.username, "pfp":x.pfp})
|
||||||
socket.sync_send("tournament",{"action":5, "players":players, "messages" : self.messages})
|
socket.sync_send("tournament",{"action":5, "players":players, "messages" : self.messages})
|
||||||
|
|
||||||
def sendMessage(self, socket, message):
|
def sendMessage(self, socket, message):
|
||||||
|
Reference in New Issue
Block a user