remove some remaining debug prints

This commit is contained in:
yann 2025-02-13 12:07:52 +01:00
parent bc8f73beaf
commit d115126afb
2 changed files with 1 additions and 16 deletions

View File

@ -1,8 +1,6 @@
from models.models import (Player, Round, Match,
MatchHistory)
from models.models import (Player, Round, Match, MatchHistory)
from models.models import DATAPATH, PLAYERFILE, TOURNAMENTFILE
from random import shuffle
import os
import json
@ -63,8 +61,6 @@ class Save:
data = {
tournament.name: tournament.data()
}
print(data)
if self.load_file(TOURNAMENTFILE):
data_tmp = self.load_file(TOURNAMENTFILE)
data_tmp[tournament.name] = tournament.data()
@ -130,7 +126,6 @@ class Application:
self.scores(self.round.match_list)
self.sort_by_score()
self.tournament.round_list.append(self.round.save())
print("après maj", self.tournament.round_list)
self.save.tournament_write(self.tournament)
self.view.display_round_info(self.round)
self.view.display_scores(self.tournament.players_list)
@ -241,6 +236,4 @@ class Application:
print("c'est parti")
self.create_tournament()
self.run_tournament()
self.view.display_winner(self.tournament.players_list)
self.view.display_scores(self.tournament.players_list)
self.menu_manager()

View File

@ -91,14 +91,6 @@ class View:
except ValueError:
print("Veuillez entrer un chiffre")
def display_winner(self, player_list):
winner = max(player_list, key=lambda t: t.score)
print("Le gagnant est :",
winner.name,
winner.lastname,
"avec un score de :",
winner.score)
def display_players(self, player_list_to_display):
print("Liste des joueurs :")
for player in player_list_to_display: