Skip to content

Commit

Permalink
added hash version to bottom of web ui
Browse files Browse the repository at this point in the history
  • Loading branch information
adangert committed Jun 20, 2019
1 parent 9277b2e commit 445a442
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion piparty.py
Expand Up @@ -237,6 +237,7 @@ class Menu():
def __init__(self):
if platform == "linux" or platform == "linux2":
self.big_update = update.check_for_update()
self.git_hash = update.run_command("git rev-parse HEAD")[:7]
self.command_queue = Queue()
self.joust_manager = Manager()
self.ns = self.joust_manager.Namespace()
Expand Down Expand Up @@ -770,7 +771,8 @@ def update_status(self,game_status):
'game_mode' : self.game_mode.pretty_name,
'move_count' : self.move_count,
'alive_count' : self.move_count - self.dead_count.value,
'ticker': self.i
'ticker': self.i,
'git_hash': self.git_hash
}

battery_status = {}
Expand Down
6 changes: 6 additions & 0 deletions templates/joustmania.html
Expand Up @@ -76,6 +76,7 @@
$('#menubuttons').show();
$('#move_count').text(info.move_count);
$('#alive_count').text(info.alive_count);
$('#git_hash').text(info.git_hash);
}
}
},
Expand Down Expand Up @@ -195,4 +196,9 @@
Cannot connect to Joustmania!
</div>

<div class='main_status'>
<br />
current Joustmania version: <span id='git_hash'>Null</span><br />
</div>

{% endblock %}

0 comments on commit 445a442

Please sign in to comment.