fix: stop at id match

This commit is contained in:
Daylin Morgan 2023-08-08 08:49:12 -05:00
parent 570793870c
commit d26c0b1d53
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -53,7 +53,7 @@ from typing import (
from urllib.error import HTTPError from urllib.error import HTTPError
from urllib.request import urlopen from urllib.request import urlopen
__version__ = "23.8a2" __version__ = "23.8a2-1-g5707938-dev"
class Spinner: class Spinner:
@ -1263,7 +1263,7 @@ class Viv:
for k, v in self.vivenvs.items(): for k, v in self.vivenvs.items():
if name_id == v.meta.id: if name_id == v.meta.id:
matches.append(v) matches.append(v)
if name_id == k or v.name == name_id: elif name_id == k or v.name == name_id:
matches.append(v) matches.append(v)
elif k.startswith(name_id) or ( elif k.startswith(name_id) or (
v.meta.id.startswith(name_id) and v.meta.id == v.name v.meta.id.startswith(name_id) and v.meta.id == v.name