Skip to content
Permalink
Browse files

added hash version to bottom of web ui

  • Loading branch information...
adangert committed Jun 20, 2019
1 parent 9277b2e commit 445a442cd7c18e7ad0d8957aa0bede2b391a980c
Showing with 9 additions and 1 deletion.
  1. +3 −1 piparty.py
  2. +6 −0 templates/joustmania.html
@@ -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()
@@ -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 = {}
@@ -76,6 +76,7 @@
$('#menubuttons').show();
$('#move_count').text(info.move_count);
$('#alive_count').text(info.alive_count);
$('#git_hash').text(info.git_hash);
}
}
},
@@ -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.
You can’t perform that action at this time.