Updater no longer will try to compare float numbers for updates

This commit is contained in:
Manuel Cortez 2021-10-26 13:10:57 -05:00
parent d222740887
commit 72e6d030d5
2 changed files with 2 additions and 5 deletions

View File

@ -1,4 +1,3 @@
from __future__ import unicode_literals
from logging import getLogger from logging import getLogger
logger = getLogger('update') logger = getLogger('update')
@ -24,8 +23,8 @@ def perform_update(endpoint, current_version, app_name='', password=None, update
if not available_update: if not available_update:
logger.debug("No update available") logger.debug("No update available")
return False return False
available_version = float(available_update['current_version']) available_version = available_update['current_version']
if not float(available_version) > float(current_version) or platform.system()+platform.architecture()[0][:2] not in available_update['downloads']: if available_version == current_version or platform.system()+platform.architecture()[0][:2] not in available_update['downloads']:
logger.debug("No update for this architecture") logger.debug("No update for this architecture")
return False return False
available_description = available_update.get('description', None) available_description = available_update.get('description', None)

View File

@ -1,6 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import application import application
from . import update from . import update
import platform import platform