From 5b155921ba7c9b342b7a8750b193e46229d26e95 Mon Sep 17 00:00:00 2001 From: Remy Date: Wed, 13 Jul 2011 23:04:30 -0700 Subject: [PATCH] Big Update: Automatic updating, Show what albums/songs you already have, Config fixes, Fixed restart & shutdown buttons --- headphones/webserve.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index 5c208b43..3a406972 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -26,7 +26,7 @@ class WebInterface(object): def home(self): page = [templates._header] - if headphones.LATEST_VERSION: + if headphones.LATEST_VERSION and headphones.CURRENT_VERSION: if headphones.CURRENT_VERSION != headphones.LATEST_VERSION: page.append('''
A newer version is available. You're %s commits behind. Click here to update
@@ -625,4 +625,6 @@ class WebInterface(object): def update(self): logger.info('Headphones is updating...') headphones.shutdown(restart=True, update=True) - return 'Updating Headphones...' \ No newline at end of file + return 'Updating Headphones...' + + update.exposed = True \ No newline at end of file