mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 20:28:37 -06:00
fix: Add next() to get the first entry from the filter
This commit is contained in:
parent
03d07c13b1
commit
64e59fef33
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def update_tools(appstate):
|
||||||
for item in ['revanced-cli', 'revanced-integrations', 'revanced-patches']:
|
for item in ['revanced-cli', 'revanced-integrations', 'revanced-patches']:
|
||||||
print(f"Checking updates for {item}...")
|
print(f"Checking updates for {item}...")
|
||||||
tools = appstate['tools']
|
tools = appstate['tools']
|
||||||
tool = filter(lambda x: x['repository'] == 'revanced/'+item and x['content_type'] not in ['application/pgp-keys', 'application/json'], tools)
|
tool = next(filter(lambda x: x['repository'] == 'revanced/'+item and x['content_type'] not in ['application/pgp-keys', 'application/json'], tools))
|
||||||
latest_ver = Version(tool['version'])
|
latest_ver = Version(tool['version'])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue