mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 08:53:59 +01:00
Bug fix to return latest version available rather than None
This commit is contained in:
@@ -134,7 +134,7 @@ def checkGithub():
|
|||||||
# See how many commits behind we are
|
# See how many commits behind we are
|
||||||
if not headphones.CURRENT_VERSION:
|
if not headphones.CURRENT_VERSION:
|
||||||
logger.info('You are running an unknown version of Headphones. Run the updater to identify your version')
|
logger.info('You are running an unknown version of Headphones. Run the updater to identify your version')
|
||||||
return headphones.CURRENT_VERSION
|
return headphones.LATEST_VERSION
|
||||||
|
|
||||||
logger.info('Comparing currently installed version with latest GitHub version')
|
logger.info('Comparing currently installed version with latest GitHub version')
|
||||||
url = 'https://api.github.com/repos/%s/headphones/compare/%s...%s' % (headphones.GIT_USER, headphones.CURRENT_VERSION, headphones.LATEST_VERSION)
|
url = 'https://api.github.com/repos/%s/headphones/compare/%s...%s' % (headphones.GIT_USER, headphones.CURRENT_VERSION, headphones.LATEST_VERSION)
|
||||||
|
|||||||
Reference in New Issue
Block a user