mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-25 12:18:36 -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']:
|
||||
print(f"Checking updates for {item}...")
|
||||
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'])
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue