mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
aaa
This commit is contained in:
parent
cc0737beef
commit
267c00fb5e
1 changed files with 4 additions and 4 deletions
|
@ -264,16 +264,16 @@ async def get_version_real(
|
|||
|
||||
else:
|
||||
|
||||
version = data[0]['commit']['committer']['date'].rstrip('Z').replace('-', '').replace(':', '').replace('T', '.')
|
||||
|
||||
# Only add commit info if configured
|
||||
if conf.get('use_commit_info', False):
|
||||
commit_count = await get_commit_count(url, headers)
|
||||
version = data[0]['commit']['committer']['date'].rstrip('Z').replace('-', '').replace(':', '').replace('T', '.')
|
||||
print(f"{version}")
|
||||
version = f"{version}.r{commit_count}.g{data[0]['sha'][:9]}"
|
||||
|
||||
return RichResult(
|
||||
# YYYYMMDD.HHMMSS
|
||||
version = data[0]['commit']['committer']['date'].rstrip('Z').replace('-', '').replace(':', '').replace('T', '.'),
|
||||
version = f"{version}.r{commit_count}.g{data[0]['sha'][:9]}",
|
||||
version = version,
|
||||
revision = data[0]['sha'],
|
||||
url = data[0]['html_url'],
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue