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['cumul'] = [self.cumul_0, self.cumul_1]
|
||||||
r['partie'] = self.partie
|
r['partie'] = self.partie
|
||||||
r['admin'] = self.admin
|
r['admin'] = self.admin
|
||||||
|
r['distributeur'] = self.distributeur
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def serialize_state(self, user):
|
def serialize_state(self, user):
|
||||||
|
@ -142,6 +142,9 @@ var set_players = function(){
|
|||||||
if(jeu['players'][i]==jeu['admin']){
|
if(jeu['players'][i]==jeu['admin']){
|
||||||
name = name + ' *';
|
name = name + ' *';
|
||||||
}
|
}
|
||||||
|
if(i==jeu['distributeur']){
|
||||||
|
name = name + ' (1)';
|
||||||
|
}
|
||||||
k = (i+6-jeu['nr'])%4;
|
k = (i+6-jeu['nr'])%4;
|
||||||
$('#joueur-'+k).html(name);
|
$('#joueur-'+k).html(name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user