From 89acf137a0655ab0567a63150aaacbcf4c5acf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E4=BA=91?= Date: Mon, 14 Mar 2016 15:12:41 +0800 Subject: [PATCH] [github] more accurate version string --- nvchecker/source/github.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nvchecker/source/github.py b/nvchecker/source/github.py index 05c2fa6..4431fd5 100644 --- a/nvchecker/source/github.py +++ b/nvchecker/source/github.py @@ -37,5 +37,7 @@ def _github_done(name, use_latest_release, use_max_tag, ignored_tags, callback, data.sort(key=parse_version) version = data[-1] else: - version = data[0]['commit']['committer']['date'].split('T', 1)[0].replace('-', '') + # YYYYMMDD.HHMMSS + version = data[0]['commit']['committer']['date'] \ + .replace('-', '').replace(':', '').replace('T', '.') callback(name, version)