diff --git a/db.py b/db.py index cdc6255..d1c2aff 100644 --- a/db.py +++ b/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): diff --git a/static/game_script.js b/static/game_script.js index a6ce3da..26c3b12 100644 --- a/static/game_script.js +++ b/static/game_script.js @@ -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); }