Skip to content
Snippets Groups Projects
Commit ee5fa018 authored by inso's avatar inso
Browse files

New version 0.9.2 + fixed a bug in version parsing

parent 897f258d
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ Qt Client for [Ucoin](http://www.ucoin.io) project. ...@@ -44,7 +44,7 @@ Qt Client for [Ucoin](http://www.ucoin.io) project.
* The executable is generated in "build" folder, named "cutecoin" * The executable is generated in "build" folder, named "cutecoin"
### How to download latest release ### How to download latest release
* Go to the [current release](https://github.com/ucoin-io/cutecoin/releases/tag/0.9.1) * Go to the [current release](https://github.com/ucoin-io/cutecoin/releases/tag/0.9.2)
* Download the package corresponding to your operating system * Download the package corresponding to your operating system
* Unzip and start "cutecoin" :) * Unzip and start "cutecoin" :)
* Join our beta community by contacting us on ucoin forums : forum.ucoin.io * Join our beta community by contacting us on ucoin forums : forum.ucoin.io
__version_info__ = ('0', '9', '1') __version_info__ = ('0', '9', '2')
__version__ = '.'.join(__version_info__) __version__ = '.'.join(__version_info__)
...@@ -355,11 +355,11 @@ class Application(QObject): ...@@ -355,11 +355,11 @@ class Application(QObject):
date = datetime.datetime.strptime(r['published_at'], "%Y-%m-%dT%H:%M:%SZ") date = datetime.datetime.strptime(r['published_at'], "%Y-%m-%dT%H:%M:%SZ")
if latest_date < date: if latest_date < date:
latest = r latest = r
latest_version = tuple(latest["tag_name"].split(".")) latest_version = latest["tag_name"]
version = (__version__ == latest_version, version = (__version__ == latest_version,
latest_version, latest_version,
latest["html_url"]) latest["html_url"])
logging.debug("Found version : {0}".format(latest_version)) logging.debug("Found version : {0}".format(latest_version))
if version != self.available_version: logging.debug("Current version : {0}".format(__version__))
self.available_version = version self.available_version = version
self.version_requested.emit() self.version_requested.emit()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment