mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-14 13:07:54 -06:00
fix: stop at id match
This commit is contained in:
parent
570793870c
commit
d26c0b1d53
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue