mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
[github] more accurate version string
This commit is contained in:
parent
65ed4ada17
commit
89acf137a0
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue