From 1c783ee6d10aa3b5cd714ece5cca3185c1b8d35d Mon Sep 17 00:00:00 2001 From: maxkoryukov Date: Mon, 30 May 2016 09:12:28 +0500 Subject: [PATCH 1/2] fixes for github-url on main --- data/interfaces/default/base.html | 3 +++ headphones/versioncheck.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data/interfaces/default/base.html b/data/interfaces/default/base.html index f95be978..c7aa81b7 100644 --- a/data/interfaces/default/base.html +++ b/data/interfaces/default/base.html @@ -82,6 +82,9 @@
Website | + %if headphones.CONFIG.GIT_USER != 'rembo10': + GitHub | + %endif Help
diff --git a/headphones/versioncheck.py b/headphones/versioncheck.py index 30098886..5969003a 100644 --- a/headphones/versioncheck.py +++ b/headphones/versioncheck.py @@ -147,7 +147,7 @@ def checkGithub(): logger.info('Comparing currently installed version with latest GitHub version') url = 'https://api.github.com/repos/%s/headphones/compare/%s...%s' % ( - headphones.CONFIG.GIT_USER, headphones.LATEST_VERSION, headphones.CURRENT_VERSION) + headphones.CONFIG.GIT_USER, headphones.LATEST_VERSION, headphones.CURRENT_VERSION) commits = request.request_json(url, timeout=20, whitelist_status_code=404, validator=lambda x: type(x) == dict) From 9a0cb32902addbd466dc92031cd38d04d3f7491e Mon Sep 17 00:00:00 2001 From: maxkoryukov Date: Mon, 30 May 2016 09:23:41 +0500 Subject: [PATCH 2/2] add link to the fork on github to the main page --- data/interfaces/default/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/interfaces/default/base.html b/data/interfaces/default/base.html index c7aa81b7..9dfa8a9d 100644 --- a/data/interfaces/default/base.html +++ b/data/interfaces/default/base.html @@ -83,7 +83,7 @@ Website | %if headphones.CONFIG.GIT_USER != 'rembo10': - GitHub | + GitHub | %endif Help