mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-01-08 07:20:09 +00:00
Handle sort=none better
This commit is contained in:
parent
9ea6f37712
commit
6d8f00036d
@ -111,7 +111,10 @@ def cmp() -> None:
|
|||||||
'newver': newver
|
'newver': newver
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.sort != "none" and oldver is not None and newver is not None:
|
if oldver is not None and newver is not None:
|
||||||
|
if args.sort == "none":
|
||||||
|
diff['delta'] = 'new' # assume it's a new version if we're not comparing
|
||||||
|
else:
|
||||||
from .sortversion import sort_version_keys
|
from .sortversion import sort_version_keys
|
||||||
version = sort_version_keys[args.sort]
|
version = sort_version_keys[args.sort]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user