fix problems caused by removing prints

This commit is contained in:
2024-11-19 17:18:18 +01:00
parent 67077212ce
commit 31146640ff
2 changed files with 31 additions and 34 deletions

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/05 03:22:32 by tomoron #+# #+# #
# Updated: 2024/11/19 16:53:31 by tomoron ### ########.fr #
# Updated: 2024/11/19 17:16:33 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -23,8 +23,6 @@ class Player():
self.skin = 0
self.goal = 0
def __del__(self):
def isTournamentReady(self):
return(self.tournamentReady)

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/09/20 00:16:57 by edbernar #+# #+# #
# Updated: 2024/11/19 16:59:00 by tomoron ### ########.fr #
# Updated: 2024/11/19 17:17:24 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -38,7 +38,6 @@ def getHistory(user, games):
return(res)
def getStats(user):
try:
games = GameResults.objects.filter(Q(player1=user) | Q(player2=user))
nbGames = games.count()
nbWin = games.filter(winner=user).count()