Add info 1st player
This commit is contained in:
parent
31e4b1919a
commit
a785de78ce
1
db.py
1
db.py
@ -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):
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user