Add info 1st player

This commit is contained in:
Léo 2020-05-27 21:04:59 +02:00
parent 31e4b1919a
commit a785de78ce
2 changed files with 4 additions and 0 deletions

1
db.py
View File

@ -132,6 +132,7 @@ class Game(db.Model):
r['cumul'] = [self.cumul_0, self.cumul_1]
r['partie'] = self.partie
r['admin'] = self.admin
r['distributeur'] = self.distributeur
return r
def serialize_state(self, user):

View File

@ -142,6 +142,9 @@ var set_players = function(){
if(jeu['players'][i]==jeu['admin']){
name = name + ' *';
}
if(i==jeu['distributeur']){
name = name + ' (1)';
}
k = (i+6-jeu['nr'])%4;
$('#joueur-'+k).html(name);
}