mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Remove version sorting
This commit is contained in:
parent
1cb633d99d
commit
0f97a48149
1 changed files with 1 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
|||
|
||||
import xmlrpc.client
|
||||
from typing import List, Tuple, Union
|
||||
from pkg_resources import parse_version
|
||||
|
||||
from nvchecker.api import session
|
||||
|
||||
|
@ -23,10 +22,7 @@ async def get_version(name, conf, *, cache, **kwargs):
|
|||
data = await cache.get((url, package, use_pre_release), pypi_xmlrpc_request)
|
||||
|
||||
if use_pre_release:
|
||||
version = sorted(
|
||||
data,
|
||||
key = parse_version,
|
||||
)[-1]
|
||||
version = data[0]
|
||||
else:
|
||||
version = data
|
||||
return version
|
||||
|
|
Loading…
Add table
Reference in a new issue